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


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

Re: A question about synchronized threads

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From markspace <-@.>
Newsgroups comp.lang.java.programmer
Subject Re: A question about synchronized threads
Date Fri, 29 Apr 2011 19:07:14 -0700
Organization A noiseless patient Spider
Lines 19
Message-ID <ipfqsq$mko$1@dont-email.me> (permalink)
References <3f249d87-aaf8-4732-9ee8-fd112cf82553@f31g2000pri.googlegroups.com> <68sr88-fuj.ln1@dagon.net> <0f043640-9fb3-430f-bcf6-d830a2dd6e81@k15g2000pri.googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=EUC-KR
Content-Transfer-Encoding 7bit
Injection-Date Sat, 30 Apr 2011 02:07:22 +0000 (UTC)
Injection-Info mx02.eternal-september.org; posting-host="pYb/yoo+Q58g8sOMt7I33A"; logging-data="23192"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18HLO477w+kQiQBXcFHANUw15apy2qB/58="
User-Agent Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9
In-Reply-To <0f043640-9fb3-430f-bcf6-d830a2dd6e81@k15g2000pri.googlegroups.com>
Cancel-Lock sha1:AeCQVTQoHEB3M8Sum1bry3HTMOo=
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:3370

Show key headers only | View raw


On 4/29/2011 6:49 PM, byhesed wrote:
> 
> Also, although two methods need to be synchronized,
> if two methods are totally unrelated to each other,
> then it would be too bad, isn't it?
> The rate of using CPU resources will be too low.


Be careful with that word "unrelated," things can seem unrelated when
they aren't.  Correct is more important that ineffectual.

However, if it is obvious that the methods could be improved, then sure
it's OK to improve them, and you do seem to have the right track.  I
think we're all just saying that concurrency can be tricky.

I'd would still like to see a complete example class ;-)


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


Thread

A question about synchronized threads byhesed <byhesed@gmail.com> - 2011-04-29 08:35 -0700
  Re: A question about synchronized threads Lew <noone@lewscanon.com> - 2011-04-29 11:53 -0400
    Re: A question about synchronized threads byhesed <byhesed@gmail.com> - 2011-04-29 09:12 -0700
      Re: A question about synchronized threads Eric Sosman <esosman@ieee-dot-org.invalid> - 2011-04-29 21:01 -0400
        Re: A question about synchronized threads byhesed <byhesed@gmail.com> - 2011-04-29 18:43 -0700
  Re: A question about synchronized threads Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2011-04-29 17:58 +0200
    Re: A question about synchronized threads byhesed <byhesed@gmail.com> - 2011-04-29 09:09 -0700
      Re: A question about synchronized threads markspace <-@.> - 2011-04-29 11:11 -0700
        Re: A question about synchronized threads Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2011-04-29 20:19 +0200
          Re: A question about synchronized threads markspace <-@.> - 2011-04-29 15:21 -0700
          Re: A question about synchronized threads Patricia Shanahan <pats@acm.org> - 2011-04-29 21:10 -0700
  Re: A question about synchronized threads dagon@dagon.net (Dagon) - 2011-04-29 15:55 -0700
    Re: A question about synchronized threads Alice <quaxx1108@example.com> - 2011-04-29 20:08 -0400
    Re: A question about synchronized threads markspace <-@.> - 2011-04-29 19:07 -0700
    Re: A question about synchronized threads byhesed <byhesed@gmail.com> - 2011-04-29 18:49 -0700
      Re: A question about synchronized threads Lew <noone@lewscanon.com> - 2011-05-03 18:57 -0400
        Re: A question about synchronized threads Deeyana <d.awlberg@hotmail.invalid> - 2011-05-04 00:17 +0000
          Re: A question about synchronized threads Lew <noone@lewscanon.com> - 2011-05-04 12:45 -0400
            Re: A question about synchronized threads Deeyana <d.awlberg@hotmail.invalid> - 2011-05-04 19:59 +0000

csiph-web