Synchronization Using the DosWaitThread() Function (Part 1)

int cdecl thread()
{
    <Perform lengthy processing task>

    DosExit(EXIT_THREAD,                          /* Terminate thread   */
            0L);                                  /* Return code        */
}

This example shows the routine executing in the secondary thread.


[Back: Synchronization Using an Event Semaphore (Part 2)]
[Next: Synchronization Using the DosWaitThread() Function (Part 2)]