Create ThreadWaitAndNotify