Adding lock objects to each thread.
Preparing some dummy threads for practicing thread pools.