* Removed the semaphore functions.
* Changed Thread class to disable the detach state.