DEV Community

Discussion on: Terrible interview question: Swap variables without a temporary

Collapse
 
muiruripyrax profile image
Pyrax_Muiruri

What are the four conditions of a deadlock? I have been asked this question on two occasions.

Collapse
 
mortoray profile image
edA‑qa mort‑ora‑y

This is one that came up during my interview training. Somebody posed it as a sample question, and was then told it wasn't good. Mainly because it's obscure trivia, and can be resolved with a search in a few seconds.