Merged Version of Busy Waiting and Critical Section