Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.development.apps > #327
| From | Rainer Weikusat <rweikusat@mssgmbh.com> |
|---|---|
| Newsgroups | comp.os.linux.development.apps |
| Subject | Re: threading question |
| Date | 2011-12-15 15:42 +0000 |
| Message-ID | <877h1xyh70.fsf@sapphire.mobileactivedefense.com> (permalink) |
| References | (1 earlier) <8762hjp32c.fsf@sapphire.mobileactivedefense.com> <jcain1$gsa$1@dont-email.me> <87wr9znmds.fsf@sapphire.mobileactivedefense.com> <jcaldt$2il$1@dont-email.me> <et3ke7977c15sman3qbgnd0k9n7vkso92r@4ax.com> |
Mark <i@dontgetlotsofspamanymore.invalid> writes: > On Wed, 14 Dec 2011 11:12:29 -0600, Bill M > <wpmccormick@just_about_everywhere.com> wrote: > >>Let me ask my question a different way: What is the proper method of >>cleaning up threads before the main routine exits? If your previous >>response answers that question, maybe you could reform your response? > > Ensure that all the threads can respond to a termination request. > Send a termination request to all threads. > Call pthread_join() for each thread. There is no required cleanup when a multithreaded process exits, especially none which would require collecting a return value from each thread.
Back to comp.os.linux.development.apps | Previous | Next — Previous in thread | Next in thread | Find similar
threading question Bill M <wpmccormick@just_about_everywhere.com> - 2011-12-14 09:05 -0600
Re: threading question Rainer Weikusat <rweikusat@mssgmbh.com> - 2011-12-14 15:48 +0000
Re: threading question Bill M <wpmccormick@just_about_everywhere.com> - 2011-12-14 10:26 -0600
Re: threading question Rainer Weikusat <rweikusat@mssgmbh.com> - 2011-12-14 16:33 +0000
Re: threading question Bill M <wpmccormick@just_about_everywhere.com> - 2011-12-14 11:12 -0600
Re: threading question Rainer Weikusat <rweikusat@mssgmbh.com> - 2011-12-14 18:10 +0000
Re: threading question Bill M <wpmccormick@just_about_everywhere.com> - 2011-12-14 13:28 -0600
Re: threading question Richard Kettlewell <rjk@greenend.org.uk> - 2011-12-14 18:30 +0000
Re: threading question Mark <i@dontgetlotsofspamanymore.invalid> - 2011-12-15 15:19 +0000
Re: threading question Rainer Weikusat <rweikusat@mssgmbh.com> - 2011-12-15 15:42 +0000
Re: threading question Bill M <wpmccormick@just_about_everywhere.com> - 2011-12-15 18:50 -0600
Re: threading question Rainer Weikusat <rweikusat@mssgmbh.com> - 2011-12-16 03:40 +0000
Re: threading question Bill M <wpmccormick@just_about_everywhere.com> - 2011-12-16 08:23 -0600
csiph-web