
The pthread_workqueue library allows you to create one or more workqueues and submit work items for processing. the workqueues are serviced by a thread pool that is automatically created and dynamically managed by the library.
the api is based on the pthread_workqueue api in freebsd 8.0, which was designed to be compatible with the api developed by apple inc to support the grand central dispatch concurrency framework.