Pregunta de entrevista de GridGain

Implement a reentrant lock based on a CAS primitive.