Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #6611

static synchronized method

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.glorb.com!postnews.google.com!28g2000pry.googlegroups.com!not-for-mail
From Ross <rossclement@gmail.com>
Newsgroups comp.lang.java.programmer
Subject static synchronized method
Date Wed, 27 Jul 2011 06:31:29 -0700 (PDT)
Organization http://groups.google.com
Lines 7
Message-ID <0e62fc71-0ae6-408c-9e93-c43b3b7c56f0@28g2000pry.googlegroups.com> (permalink)
NNTP-Posting-Host 146.227.1.15
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
X-Trace posting.google.com 1311773489 15068 127.0.0.1 (27 Jul 2011 13:31:29 GMT)
X-Complaints-To groups-abuse@google.com
NNTP-Posting-Date Wed, 27 Jul 2011 13:31:29 +0000 (UTC)
Complaints-To groups-abuse@google.com
Injection-Info 28g2000pry.googlegroups.com; posting-host=146.227.1.15; posting-account=e1CBswoAAACHfb-egdiJeDKz3WQXJQFe
User-Agent G2/1.0
X-HTTP-Via 1.1 ironport2.dmu.ac.uk:3128 (IronPort-WSA/7.0.0-819)
X-Google-Web-Client true
X-Google-Header-Order NKHUALESRCV
X-HTTP-UserAgent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:5.0.1) Gecko/20100101 Firefox/5.0.1,gzip(gfe)
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:6611

Show key headers only | View raw


If I have a method which is both static and synchronized, then can I
guarantee that only one thread will be allowed in at once, even if I
have multiple instances of the object in memory, one per thread?

Cheers,

Ross

Back to comp.lang.java.programmer | Previous | NextNext in thread | Find similar


Thread

static synchronized method Ross <rossclement@gmail.com> - 2011-07-27 06:31 -0700
  Re: static synchronized method markspace <-@.> - 2011-07-27 06:37 -0700
    Re: static synchronized method Henderson <h1@g1.f1> - 2011-07-27 10:47 -0400
      Re: static synchronized method lewbloch <lewbloch@gmail.com> - 2011-07-27 14:06 -0700
        Re: static synchronized method Alice <quaxx1108@example.com> - 2011-07-27 22:04 -0400
          Re: static synchronized method lewbloch <lewbloch@gmail.com> - 2011-07-29 09:28 -0700
            Re: static synchronized method Alice <quaxx1108@example.com> - 2011-07-29 18:01 -0400
      Re: static synchronized method Ross <rossclement@gmail.com> - 2011-07-28 03:09 -0700
        Re: static synchronized method lewbloch <lewbloch@gmail.com> - 2011-07-29 09:29 -0700
  Re: static synchronized method Roedy Green <see_website@mindprod.com.invalid> - 2011-07-27 13:43 -0700

csiph-web