Added a global semaphore. Properly splitting up master list to 4 child processes.