add mutex, semaphore, update the socket job queue