Changes
→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