DevPrep

All topics

🚦 Multithreading & concurrency: iOS interview questions

  1. Ways to achieve concurrency in iOS/macOS Middle PRO
  2. Run loop Middle PRO
  3. Deadlock Middle PRO
  4. Livelock Senior PRO
  5. DispatchGroup Middle PRO
  6. Semaphore Middle PRO
  7. Mutex Middle PRO
  8. @synchronized Middle PRO
  9. A setter in non-ARC code Middle PRO
  10. Difference between synchronous and asynchronous tasks Junior PRO
  11. Asynchrony vs multithreading — what's the difference? Middle PRO
  12. Serial vs concurrent queue — what's the difference? Junior PRO
  13. How does DispatchQueue.global() differ from your own concurrent queue? Middle PRO
  14. What is a barrier and on which queue does it work? Middle PRO
  15. Can you call main.sync from the main thread? What happens? Junior PRO
  16. What is DispatchSemaphore and what if you forget signal()? Middle PRO
  17. What is a race condition and how do you fix it (3 ways)? Middle PRO

Practice this before your interview

DevPrep turns these answers into one-minute challenges: what does this code print, find the bug, mock interviews. One challenge a day.

Get DevPrep on the App Store