PPT Slide
I will show you two programs, shared1 and shared2.
The first program does not synchronize the production
and consumption. The second program shows the synchronization. Only one cell is used, which contains
an integer, in the common buffer.
What if students complain to the canteen committee
that the waiting time in chicken rice stall is too long?
What can we do to shorten the waiting time? You
will have to propose solutions during the lecture.