Programming - Threads - Discussion

You Are Here :: Home > JAVA > Threads - Discussion

 



Q.

______________________ is used to prevent data from being corrupted by multiple threads by a keyword synchronized to synchronize them and intercommunicate to each other.                         


A. Synchronous Threads B. Asynchronous Threads
C. Semaphore D. Both A and B

Answer: Option C
Explaination:

 


semaphore? to prevent data from being corrupted by multiple threads by a keyword synchronized to synchronize them and intercommunicate to each other.




Discussion

Your Comments Goes here...
NameDiscussion