If three threads are trying to share a single object at the same time which…
2022
If three threads are trying to share a single object at the same time which condition will arise in the scenario?
- A.
Time-lapse
- B.
Critical situation
- C.
Race condition
- D.
Recursion
Attempted by 258 students.
Show answer & explanation
Correct answer: C
When three threads attempt to share a single object simultaneously without proper synchronization, a race condition arises. This occurs because the outcome depends on the unpredictable timing of thread execution. Concepts like time-lapse, critical situation, or recursion do not describe this concurrency issue.