UiPath interview question

What is a deadlock in threads?