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


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

Re: Threads and statics

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.alphanet.ch!alphanet.ch!news.imp.ch!weretis.net!feeder5.news.weretis.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: Threads and statics
Date Sat, 09 Apr 2011 18:15:03 +0200
Organization A noiseless patient Spider
Lines 21
Message-ID <inq0m4$429$1@dont-email.me> (permalink)
References <905p9gFpuoU1@mid.individual.net> <inlnjn$6c1$1@dont-email.me> <deadlocks-20110409180331@ram.dialup.fu-berlin.de>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Sat, 9 Apr 2011 16:15:00 +0000 (UTC)
Injection-Info mx01.eternal-september.org; posting-host="LVF3EJsXcXY8efdatRhJzA"; logging-data="4169"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/zSifiJl3P2R3Phbbdib6b"
User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9
In-Reply-To <deadlocks-20110409180331@ram.dialup.fu-berlin.de>
Cancel-Lock sha1:4yLTfUTA6yOujsWdT77bbR1ohFk=
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:3010

Show key headers only | View raw


On 09/04/2011 18:08, Stefan Ram allegedly wrote:
>    I have little knowledge about multithreading, but from this
>    it seems that one can avoid deadlocks as long as one can
>    avoid situations where more than one resource needs to be
>    obtained for exclusive access at the same time.

That's a tautology. But there *are* cases where you need exclusive 
access to more than one resource at the same time. The very fact that 
multi-threaded programs exists proves one can avoid deadlocks in such 
cases -- no need to look any further.

>    For example,
>    a program was written by experts in multithreading and then
>    showed a deadlock the first time after several years of use.

Beware of the "experts"!

-- 
DF.
An escaped convict once said to me:
"Alcatraz is the place to be"

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


Thread

Threads and statics Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-04-07 13:34 +0100
  Re: Threads and statics Patricia Shanahan <pats@acm.org> - 2011-04-07 05:41 -0700
    Re: Threads and statics Robert Klemme <shortcutter@googlemail.com> - 2011-04-07 07:38 -0700
      Re: Threads and statics Lew <lew@lewscanon.com> - 2011-04-07 08:20 -0700
        Re: Threads and statics Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2011-04-07 18:47 -0300
  Re: Threads and statics markspace <-@.> - 2011-04-07 09:32 -0700
  Re: Threads and statics Eric Sosman <esosman@ieee-dot-org.invalid> - 2011-04-07 21:14 -0400
    Re: Threads and statics Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2011-04-09 18:15 +0200
      Re: Threads and statics Lew <noone@lewscanon.com> - 2011-04-09 13:06 -0400
    Re: Threads and statics Patricia Shanahan <pats@acm.org> - 2011-04-09 09:29 -0700
    Re: Threads and statics Peter Duniho <NpOeStPeAdM@NnOwSlPiAnMk.com> - 2011-04-09 09:29 -0700
    Re: Threads and statics Eric Sosman <esosman@ieee-dot-org.invalid> - 2011-04-09 14:57 -0400
      Re: Threads and statics "Mike Schilling" <mscottschilling@hotmail.com> - 2011-04-10 23:10 -0700
        Re: Threads and statics Tom Anderson <twic@urchin.earth.li> - 2011-04-11 13:25 +0100
          Re: Threads and statics Lew <noone@lewscanon.com> - 2011-04-11 08:58 -0400

csiph-web