Open main menu

lensowiki β

Changes

Computer Science/162/proj1

85 bytes added, 00:20, 5 October 2008
Implementation
===Implementation===
;New state variables
Alarm has a new instance variable, waitingThreads, which is a Java PriorityQueue of waiting threads with the target wake time as their priority. It also contains a new inner class named waitingThread, which contains a reference to the a KThread and its associated wakeTime. The PriorityQueue waitingThreads will be populated with instances of this inner class.
;Implementation details
Anonymous user