in JAVA by
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

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

Related questions

0 votes
asked Apr 10, 2021 in JAVA by Robindeniel
0 votes
asked Apr 8, 2021 in JAVA by SakshiSharma
0 votes
asked Apr 9, 2021 in JAVA by Robindeniel