What is multithreading? What Is synchronized?

This question is related to Oracle Interview

Showing Answers 1 - 1 of 1 Answers

mms

  • Apr 9th, 2006
 

multi threading is nothing but more threads(small program) running on a single program. that is we utilised the cpu time very effectively.synchronisation means if multiple threads try to access the particular resources , then there will a error accuired . to avoid that error we should declare that method as synchronised. if we declare sync.., then it maintains a lock between multiple threads. that is only one thread is allow to access the resource,other threads are waiting bfor that thread finishes.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions