program to thrash some different thread synchronization primitives.