Removed semaphore from server.Allocated separate copy of data for each thread.