Update synch.h

Implemented alarm + priority scheduling