| Author |
calling synchronized methods of the object simultaneouly.
|
prasanth chiru
Greenhorn
Joined: Mar 14, 2004
Posts: 16
|
|
Hi, In my object I am having many synchronized methods. If a thread is calling one synchronized method, can any other thread call some other synchronized method of the same object at the same time. If anybody knows about it, please help me.
|
 |
Rahul Mahindrakar
Ranch Hand
Joined: Jul 28, 2000
Posts: 1831
|
|
NO a thread cannot call any of the synchronized blocks of an Object once it is locked by another thread either through a synchrnoized block or a synchronized method. It can however call any of the methods that are not synchronized.
|
 |
prasanth chiru
Greenhorn
Joined: Mar 14, 2004
Posts: 16
|
|
Hi rahul, Thankyou much for neat explaination.
|
 |
prasanth chiru
Greenhorn
Joined: Mar 14, 2004
Posts: 16
|
|
Hi rahul, Thankyou very much for the clear explaination.
|
 |
 |
|
|
subject: calling synchronized methods of the object simultaneouly.
|
|
|