os homework on synchronization