Simple implementation of synchronization mechanisms