Updated thread.h

Added the changes needed only for the Alarm Clock Assignment. Removed the not needed functions.