http://qs1969.pair.com?node_id=285483


in reply to returning from a thread ?

To answer the Win32 part of your first question:

An application consists of one or more processes. A process, in the simplest terms, is an executing program. One or more threads run in the context of the process. A thread is the basic unit to which the operating system allocates processor time. A thread can execute any part of the process code, including parts currently being executed by another thread.

Source: MSDN