A Simple busy wait synchronizer for threads and processes