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...
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.
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?
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.