Completed simple acquire for mutex and developing for waitingQueue.