Changes

Jump to: navigation, search

Computer Science/162/proj1

No change in size, 01:35, 5 October 2008
Pseudocode
===Pseudocode===
{{c|<pre>Sleepsleep() {
Disable Interrupts;
Add current thread to wait queue;
}</pre>}}
{{c|<pre>Wakewake() {
AssertTrue (lock held by current thread);
Disable interrupts;
}</pre>}}
{{c|<pre>WakeAllwakeAll() {
Disable interrupts;
While there are threads on the wait queue:
Anonymous user

Navigation menu