dcsimg
Question about synchronized static function.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   George_Simple
Posted On:   Thursday, March 20, 2003 06:19 AM

			
Hi, everyone!


The synchronized statement often deals with an object (called monitor).
But a static function can be invoked without an object.

So if a static function is declared as static, what is the function of
static and synchronized here? Which lock it is using?


Can you give me a simple expplanation?


regards,
George

Re: Question about synchronized static function.

Posted By:   Lasse_Koskela  
Posted On:   Thursday, March 20, 2003 08:40 AM

In the case of a static synchronized method, the locked object is the Class which defines the method being called.
About | Sitemap | Contact