Example Program Index


CANCEL - Example demonstrating how to cancel a long-running thread.

COND1 - First example demonstrating the basic operation of the condition variable class.

COND2 - Second example demonstrating the basic operation of the condition variable class.

COND3 - Third example demonstrating the basic operation of the condition variable class.

DESTROY - Example demonstrating how to destroy a thread.

DETACH - Example demonstrating how to change the detached state attribute of a newly created thread.

EXITING - Example used to demonstrate how to exit from a thread without terminating the whole process.

HTTPSERV - This is an example program used demonstrate the use of the vbThread library in multi-threaded server.

JOINED - Example demonstrating how to join a thread.

MESSAGE - Example demonstrating the vbThread status and error message functions for vbThread_t types.

MUTEX1 - vbMutex example program demonstrating how to protect access to shared data.

MUTEX2 - Mutex example used to show now corruption that can result if no serialization is done.

PRIO1 - Example demonstrating how to change thread priorities after it has been created.

PRIO2 - Example demonstrating how to set thread priorities using threads added to a thread pool.

SEMA1 - First example demonstrating the basic operation of the vbThread semaphore class.

SEMA2 - Second example demonstrating barrier synchronization using the vbThread semaphore class.

SEMA3 - Third example demonstrating the basic operation of the vbThread semaphore class.

SIMPLE1 - Example demonstrating the basic operation of the vbThread class.

SIMPLE2 - Example demonstrating the basic operation of the vbThread class using an entry and exit function.

SIMPLE3 - Example demonstrating the basic operation of the vbThread class using parameter passing.

SIZEOF - Program used to print the size of the primary data structures used in the vbThread library.

SPECIFIC - Example demonstrating how to create thread-specific data.

STACK - Example demonstrating how to a change thread's stack size.

SUSPEND - Example demonstrating how to suspend and resume a thread.

TEMPLATE - Example demonstrating the basic operation of the vbThread class using templates.

TIMED - Example demonstrating the use of timing delays to perform synchronization.

TPOOL1 - First example used to test the basic functionality of the thread pool class.

TPOOL2 - Second example demonstrating the basic operation of the thread pool class.

VBDBASE - Example used demonstrate the use of the VBD file manager in a multi-threaded application.


End Of Document