Central Queensland Univeristy

MyInfocom

Faculty of Informatics and Communication

Olive - 85349 Home RealAudio Previous Slide Lecture Home Previous Slide 85349 Help 85349 Study Schedule

You are here: 85349 -> Resources -> Lectures -> 6 -> 28

Search | Site Map

[ Questions or Comments ]

Lecture 6: Slide 28 of 61

Implementing S (Cont.)
  • wait operation

     wait( S1 );
    C = C - 1;
    if (C<0)
    {
    signal( S1 );
    wait( S2 );
    }
    else
    signal( S1 );
  • signal operation

     wait( S1 );
    C = C+1;
    if (C <= 0)
    signal( S2 );
    signal( S1 );

[ Questions or Comments ]

You are here: 85349 -> Resources -> Lectures -> 6 -> 28

Search | Site Map

Olive - 85349 Home RealAudio Previous slide Lecture home Next slide 85349 Help 85349 Study Schedule
Edit | © Central Queensland University
Last modified: Mon Apr 2 15:57:08 2001 by webmaster