Improving multithreading test, getting ready for mutual exclusion testing.