Article View: borland.public.jbuilder.java.language
Article #419Re: synchronized methods
From: Alexey N. Solofnenko
Date: Fri, 12 Aug 2005 17:18
Date: Fri, 12 Aug 2005 17:18
22 lines
1501 bytes
1501 bytes
http://java.sun.com/docs/books/tutorial/essential/threads/monitors.html
- Alexey.
George wrote:
> If an interface method is declared as
> public void actionPerformed(ActionEvent e)
>
> and I implement is as
> public synchronized void actionPerformed(ActionEvent e)
>
> I don't get any compile errors. Does this mean that two (or more) users can
> never perform the action at the same time?
>
> TIA
> George
>
>
--
Alexey N. Solofnenko {trelony at gmail.com}
home: http://trelony.cjb.net/
Technical Details
Message-ID:
<42fcd9d4$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42fcd363$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: f74b3,b91dabe4e4e5f141 X-Google-Attributes: gidf74b3,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Fri, 12 Aug 2005 10:18:13 -0700 From: "Alexey N. Solofnenko" <trelony@mail.ru> User-Agent: Thunderbird 1.0+ (Windows/20050811) MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language Subject: Re: synchronized methods References: <42fcd363$1@newsgroups.borland.com> In-Reply-To: <42fcd363$1@newsgroups.borland.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 208.200.221.5 Message-ID: <42fcd9d4$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1123867092 208.200.221.5 (12 Aug 2005 10:18:12 -0700) Lines: 22 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail