Welcome! Log In Create A New Profile

Advanced

Code

Posted by Kilhra 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
Code
October 13, 2007 09:19AM
I just noticed that the first question of the example paper actually asks us to give a programming example...the exam tut says nothing aobut knowing code and we didn't get asked any code in the assignments...
Re: Code
October 13, 2007 11:18AM
Kilhra

You now how to code, so the best is to give it in plain C code as in the book.

I gues we need to know:
the Peterson's p196
Semaphores on Page 200
Monitors on page 215.


I do not think the others like the dining philosopher is necessary.
May be the basics is suffecient and all the other are just examples???
Re: Code
October 13, 2007 12:14PM
Thanks for the tip smiling smiley
Re: Code
October 13, 2007 01:49PM
I'm pretty sure you can uses psuedo code as well (i.e. make it look like some kind of programming language) which means the code just needs to make sense and doesn't have to by syntactically correct.
Re: Code
October 13, 2007 03:48PM
yeah I would say just write it in C or pseudo code. I really doubt the lectures will penalize you if you get a bit of syntax wrong. The algorithm is what counts no?
Re: Code
October 15, 2007 09:05AM
What was your example for the monitor question.
Re: Code
October 15, 2007 11:31AM
united Wrote:
-------------------------------------------------------
> What was your example for the monitor question.


Everything on page 215.

The first piece of code is the global entrance and exit from the monitor.
The second piece of code is the condition for wait and third the condition for signal.
Sorry, only registered users may post in this forum.

Click here to login