TMC interview question

mutex , thread , c, c++