ModalLock and FairModalLock
Problem overview from a real Openai interview:
OpenAI ML Infra Python concurrency task. Use Conditions and queues to build a shared mutex with concurrent same-mode access and request-order fairness.
Check more interview questions and experiences about Openai
