Changes

Jump to: navigation, search

Computer Science/162/proj1

56 bytes added, 00:36, 5 October 2008
Pseudocode
AssertTrue (lock held by current thread);
Disable interrupts;
If there is a thread on the wait queue, remove : Remove the first thread and wake it;
Re-enable interrupts;
}</pre>}}
{{c|<pre>WakeAll() {
Disable interrupts;
While there are threads on the wait queue, call : Remove the first thread and wake().it;
Re-enable interrupts;
}</pre>}}
Anonymous user

Navigation menu