refined the synchronization between threads.
compilation and basic job execution done
compilation and basic job execution done