Implementation of Santa Claus Problem in GUI(Critical Section)