Challenge: Solve the Readers-Writers problem with various APIs of GCD.
Setup: Read and write to the user singleton's age property 200_000 times, concurrently. Setup testing to make sure the age is accurate after all tasks have completed.
- With Dispatch Queues
- With Semaphores
- With Dispatch Barriers
Challenge: Implement pmap for Swift.