Pregunta de entrevista de Riverbed Technology

general idea and code to implement bit-range lock