
 NAME: SAMPLE02

 FEATURE/CONCEPTS:
 Synchronization of multiple threads using system event semaphores.

 TASK:
 Writing a multithread program.

 DESCRIPTION:
 This sample program creates one thread for each argument.  Each
 thread prints "Hello world from thread n!" the number of times
 specified in the corresponding argument.  For example

    SAMPLE02 2 4 6

 creates three threads; the first thread displays "Hello"
 two times, the second thread displays "Hello" four times,
 and the third thread displays "Hello" six times.

 In operation, the program works in the following order:

    1. Creates the requested number of threads
    2. Waits until all threads have been created
    3. Begins multithread execution and waits for completion

 PROJECT INFORMATION:

    LOCATION:
    \ibmcpp\samples\projects\compiler

    PROJECT NAME(s):
    Multithread Hello World

 SOURCE FILE INFORMATION:

    LOCATION:
    \ibmcpp\samples\compiler\sample02

    FILE NAME(s)   DESCRIPTION
    ------------   ------------
    SAMPLE02.C     C source code for multithread "Hello, World" program
    SAMPLE02.DEF   Module definition file used to create SAMPLE02.EXE
    Makefile	   Makefile to make the program.
		   Use "nmake" to create SAMPLE02.EXE
		   "nmake clean" will erase the files created by the nmake.

 SOFTWARE/HARDWARE PREREQUISITES:
 None.

