Discussions Search    Reviews    Search Aid    Buzzzz    Google@Omgili Add to iGoogle   Bookmark and Share

  Advanced Search



worker threads

On Thu, 3 Jul 2008 00:08:25 +0530, "John" <...@microsoft.discussions.com

Hi All,

Two worker threads are there in my mfc application and these are
launched from primary thread. How Primary thread can know which thread is
alive/terminated?

Thanks in advance.

 Latest discussions from this group  (microsoft.public.vc.language)

CoClass name and interface name  
[03 Sep 2008]
On Wed, 3 Sep 2008 06:06:00 -0700, George <George@discussio ns.microsoft.com Hello everyone...
Here is one question I discussed here before a couple of days before. I feel it ...
Is HHOOK a kernel object?  
[03 Sep 2008]
On Wed, 3 Sep 2008 10:23:14 -0700 (PDT), FaisalVali <faisalv@gmail.co m Does anyone know...
if the handle (HHOOK) returned by SetWindowsHookEx, is a kernel object or not (i.e Can ...
Re: A problem about static object in DLL  
[03 Sep 2008]
On Wed, 3 Sep 2008 12:30:32 -0500, "Ben Voigt [C++ MVP]" <rbv@nospam.nospa m This is ...
very good advice for dllexport-ed functions. But I saw dllexport used on a class and this...
More...


On Wed, 02 Jul 2008 14:29:56 -0500, "Doug Harrison [MVP]" <...@mvps.org

On Thu, 3 Jul 2008 00:08:25 +0530, "John" <...@microsoft.discussions.comwrote:


The primary thread can check on the secondary threads with
WaitForSingleObject and GetExitCodeThread. It is also possible for the
secondary threads to post a message to the primary thread just before they
exit, to let the primary know they are about to exit. No matter what,
before exiting, the primary thread should join with the secondary threads
by using WaitForSingleObject. For more on all this, see:

http://members.cox.net/doug_web/threads.htm

--
Doug Harrison
Visual C++ MVP

On Wed, 2 Jul 2008 14:57:40 -0400, "Igor Tandetnik" <...@mvps.org

John <...@microsoft.discussions.com
GetExitCodeThread, WaitForSingleObject et al
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


On Sat, 5 Jul 2008 22:18:55 +0700, "Alan Carre" <...@twilightgames.com

"Igor Tandetnik" <...@TK2MSFTNGP05.phx.gbl...

To: Igor Tandetnik

I just wanted to express my gratitude to you for saving me (and many others
I suppose) literally mountains of time.

When I see that you have responded to a question here I instantly know that
(assuming I knew the [or more precisely *an*] answer to it) I need-not
attempt to do so. And that is because you have consistently been shown to
provide the most succinct and always-correct answers to every single
question you've addressed here (excluding the ones I haven't looked into of
course).

Thank you!

Sincerely,
- Alan Carre


Discussion Title: worker threads
Title Keywords: worker  threads