:- use_module(library(thread_pool)).(can be autoloaded)
waitoption of thread_create_in_pool/4 and the
backlogoption described below. Options are passed to thread_create/3, except for
- Maximum number of requests that can be suspended. Default is
infinite. Otherwise it must be a non-negative integer. Using
backlog(0)will never delay thread creation for this pool.
The pooling mechanism does not interact with the
state of a thread. Threads can be created both
normal and must be joined using thread_join/2
if they are not detached.