Article View: borland.public.jbuilder.java.language
Article #15063Syncrhonise this or that
From: Hugo Ferreira
Date: Thu, 15 Jul 1999 00:00
Date: Thu, 15 Jul 1999 00:00
25 lines
752 bytes
752 bytes
Hi,
I have a basic question about thread syncronization.
What is the differenece between these two calls:
void syncrhonized method_x()
{
do_a();
do_b();
}
and
void method_x()
{
do_a();
syncrhonized( this )
{
do_b();
}
}
TIA.
Hugo Ferreira.
Technical Details
Message-ID:
<7mk5dd$4sn7@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,883d3e7766e8b829,start X-Google-Attributes: gidf74b3,public From: "Hugo Ferreira" <HugoF@cocaina.inescn.pt> Subject: Syncrhonise this or that Date: 1999/07/15 Message-ID: <7mk5dd$4sn7@forums.borland.com> X-Deja-AN: 501253523 Organization: Another Netscape Collabra Server User X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3612.1700 Newsgroups: borland.public.jbuilder.java.language