Implement a thread-safe dictionary (reader-writer)
Task
Implement a wrapper around [Key: Value] that is safe under concurrent access from several threads. Show the reader-writer pattern on GCD and the modern alternatives.
The rest of this answer, with code and interview follow-ups, is in the DevPrep app.
Read the full answer in DevPrep