General Motors (GM) Interview Question

How to create a simple deadlock program using java