logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • Why synchronization?


  • Correct Answer
  • When ever two or more threads are sharing same data for updating then unpredicted result will be there in the data For Example take a thread is depositing amount in Account Object and another thread is withdrawing amount from the same Account Object when ever both threads are executed simultaneously then unexpected result is stored in the balance of the Account Object 


  • Technology problems


    Search Results


    • 1. How to do MultiThreading in Java?
    • Discuss
    • 2. What is MultiThreading?
    • Discuss
    • 3. What is MultiTasking?
    • Discuss
    • 4. What is Thread?
    • Discuss
    • 5. How to get contents of the folder?
    • Discuss
    • 6. When finally block is executed?
    • Discuss
    • 7. How to call a constructor in java?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment