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?

  1. A.

    Time-lapse

  2. B.

    Critical situation

  3. C.

    Race condition

  4. 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.

Explore the full course: Up Lt Grade Assistant Teacher 2025