HF RL Explorer

Task: Implement Reader/Writer Locks in C++

Task: Implement Reader/Writer Locks in C++: a task in Terminal-Lego-15k (Harbor dataset). Implement a thread-safe data structure in C++ that uses reader/writer locks (also known as shared-exclusive locks) to optimize for a scenario with one infrequent writer and many frequent readers .

The task

Implement a thread-safe data structure in C++ that uses reader/writer locks (also known as shared-exclusive locks) to optimize for a scenario with **one infrequent writer and many frequent readers**.

Part of PrimeIntellect/Terminal-Lego-15k.