Infosys Interview Question

different types of options to prevent threadlocking