A system and method for emulating complete operating system support for
synchronization of the execution of a process on multiple independent
events. The emulation includes creating a thread and control; collecting
representations of the different events into one container event, the
occurrence of any one of the different events effecting the occurrence of
the container event; waiting on the container event; suspending the
execution of the thread; and after the occurrence of the container event,
resuming the execution of the thread of control.