All Questions
Dealing With Contention easy

Do multiple threads reading the same immutable constant cause race conditions?

  1. A Yes, always.
  2. B No. Reads are safe if data doesn't change. Race conditions require at least one Writer.
  3. C Only in Java.
  4. D Yes, if they read fast enough.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions