Added Semaphores in Dispatcher class to protect member variables