Vodafone interview question

What is a threadlock and binary search