deadlock in operating system gate