You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Why would this function need to do anything other than increment the semaphore? I can see why P() needs to decrement then wait -- but is there a need for V() to context switch on sem <= 0 etc?
TIA
Ben Pfaff
unread,
Nov 22, 2009, 8:57:26 PM11/22/09
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
Something needs to wake up a thread that is waiting in P(), if there is one, and doing it as part of V() is the most straightforward implementation. -- Ben Pfaff http://benpfaff.org