Discussion:
Create_Semaphore Parameters
(too old to reply)
cs412017
2005-10-10 07:27:08 UTC
Permalink
Create_Semaphore is being passed in only 2 parameters in the user files
ping.c, pong.c , and all the scheduling testers.
However, in sema.c, it is defined to have 3 inputs...the 2nd input being
the length of the name of the semaphore.
Is this a bug?

Also, if this is a bug, and it should be the 3rd and not the second
argument that denotes the initial count for the semaphore, should we use
this count only if the semaphore doesn't already exist?

Thanks.
cs412017
2005-10-10 07:32:05 UTC
Permalink
Never mind that last post...I see how it works now. Sorry about the spam.
Continue reading on narkive:
Loading...