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


Groups > comp.programming.threads > #1361

Are detached threads useful?

Newsgroups comp.programming.threads
Date 2013-02-14 18:52 -0800
Message-ID <cfd2e5c1-5c00-4ebb-9da1-a3588dc41d79@w14g2000vba.googlegroups.com> (permalink)
Subject Are detached threads useful?
From Michael Podolsky <michael.podolsky.69@gmail.com>

Show all headers | View raw


Hello All,

I have a general feeling that to detach a thread is a bad idea.

Detaching threads allows us not to register some threads in some
containers, but that operation should be very cheep. It saves us from
long waiting on join operation... but implementing effective join
operations on a number of threads is anyway an essential task

We pay for using detached threads by producing shaky designs (what was
ok to terminate today may be not ok tomorrow when we change some
thread functionality).

In short, I declare "detached threads should not be used". And I would
like to hear about examples where having them is really a good (or
even necessary?) idea.

Thank you,
Michael

Back to comp.programming.threads | Previous | NextNext in thread | Find similar


Thread

Are detached threads useful? Michael Podolsky <michael.podolsky.69@gmail.com> - 2013-02-14 18:52 -0800
  Re: Are detached threads useful? Marcel Müller <news.5.maazl@spamgourmet.org> - 2013-02-16 11:00 +0100
  Re: Are detached threads useful? andrew@cucumber.demon.co.uk (Andrew Gabriel) - 2013-03-02 15:16 +0000
    Re: Are detached threads useful? Michael Podolsky <michael.podolsky.69@gmail.com> - 2013-03-07 22:27 -0800
      Re: Are detached threads useful? andrew@cucumber.demon.co.uk (Andrew Gabriel) - 2013-03-18 14:57 +0000
  Re: Are detached threads useful? Gerald Breuer <Gerald.Breuer@googlemail.com> - 2013-03-08 19:11 +0100

csiph-web