added semaphore and thread notes