Update synch.c

Implemented alarm + priority scheduling