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
Answer:C
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
Explanation: 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.