Pregunta de entrevista de Vodafone

What is a threadlock and binary search