Open main menu

lensowiki β

Changes

Computer Science/162/proj1

32 bytes added, 01:35, 5 October 2008
Pseudocode
===Pseudocode===
{{c|<pre>waitUntil(time){
Disable interrupts;
Create a new waitingThread;
Sleep the current thread;
Re-enable interrupts;
}</pre>}}
{{c|<pre>timerInterrupt(){
AssertTrue (interrupts have already been disabled);
For all waitingThreads that have exceeded their associated wait time;
Wake their associated threads and remove from queue;
}</pre>}}
==Communicator==
Anonymous user