logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • How does thread synchronization occurs inside a monitor?


  • Correct Answer
  • A Monitor defines a lock and condition variables for managing concurrent access to shared data The monitor uses the lock to ensure that only a single thread inactive in the monitor code at any time A monitor allows only one thread to lock an object at once 


  • Technology problems


    Search Results


    • 1. What is Auto boxing and unboxing?
    • Discuss
    • 2. What are Native methods in Java?
    • Discuss
    • 3. What is the SimpleTimeZone class?
    • Discuss
    • 4. What is the Set interface ?
    • Discuss
    • 5. How do you decide when to use ArrayList and When to use LinkedList?
    • Discuss
    • 6. Why do we need wrapper classes in Java?
    • Discuss
    • 7. What is Shallow and deep cloning in Java?
    • Discuss
    • 8. What is the similarity between Dynamic Binding and linking?
    • Discuss
    • 9. What is dynamic method dispatch?
    • Discuss
    • 10. What are pass by reference and pass by value ?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment