"Implement an "alarm clock" class. Threads call "Alarm:GoToSleepFor(int howLong)" to go to sleep for a period of time. The alarm clock can be implemented using the hardware Timer device (i.e. timer.h). When the timer interrupt goes off, the Timer interrupt handler checks to see if any thread that had been asleep needs to wake up now. There is no requirement that threads start running immediately after waking up; just put them on the ready queue after they have waited for the approximately the right amount of time. The person will set an alarm and it will display a message after the set amount of time. Provide the options to snooz alarm for 10 sec or stop the alarm as well."
Can anyone help me solve this?
What I don't get is how can I use the Timer Interrupt Handler to check if any thread that is already asleep needs to be waken up?
and then how do I wake that up?
I am totally new to Linux and can't understand most of the things.... So, if anyone can provide the possible commands, libraries etc I can use to solve this then I would be really thankful