Ericsson Interview Question

multi-thread, dead lock, basic in C/C++