Can somebody please help me in implementing the Bakery algorithm of mutual exclusion in C or C++ ? Please help.