cs412017
2005-10-10 07:27:08 UTC
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.
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.