📞 0339-0387701 (WhatsApp) Contact

« Back to Software Engineering (NCCIA)

A race condition is most likely to occur in which situation?

A. Single-threaded programs with no shared data
B. Concurrent programs where timing affects shared data ✅
C. Printed documents
D. Static web pages

Correct Answer: B. Concurrent programs where timing affects shared data

Explanation

  • Race conditions depend on thread timing
  • Shared data accessed without synchronisation causes them.