* Upadted constructor of Semaphore to set the max count.
* Updated Semapore::wait() to set the timeout second.