JFrog Interview Question

what is deadlock? give an example what the result of simple code with threads?