Q. What happens when two threads try to access a synchronized method simultaneously?

क्या होता है जब दो थ्रेड एक साथ एक सिंक्रनाइज़ विधि तक पहुंचने का प्रयास करते हैं?

A
Both execute at the same time
B
One thread executes and the other waits
C
Both threads are blocked
D
The program crashes

Explanation

Explanation will be available soon. Please stay tuned.

व्याख्या जल्द ही उपलब्ध होगी। कृपया बने रहें।

Invest in Future Achievers

Your support helps keep Exam Achiever 100% free for students preparing for exams.

Thanks for your support!

Comments

Leave a Comment