Apr 10 in JAVA
Q: If three threads trying to share a single object at the same time, which condition will arise in this scenario?

a) Time-Lapse

b) Critical situation

c) Race condition

d) Recursion

1 Answer

0 votes
Apr 10

(c) Race condition

Reason: If two or more threads are trying to access a common resource at the same time. This situation is known as race condition. It generally occurs during the execution of multi-threaded application. It also refers to a programming bug or issue that occurs when the thread scheduler swaps the threads at any time between the process.

Click here to read more about JAVA
Click here to read more about Insurance

Related questions

0 votes
Apr 10 in JAVA
...