Locking for cross thread communication
Multithreading and signal demonstration