Added thread synchronization examples