diff --git a/reference/pthreads/book.xml b/reference/pthreads/book.xml index d275b56ca8..908f6593b3 100644 --- a/reference/pthreads/book.xml +++ b/reference/pthreads/book.xml @@ -31,6 +31,16 @@ Additionally, any context with a reference to the Stackable can read, write and execute its methods before during and after execution. + A Pool: + A Pool of Worker threads can be used to distribute Stackables among programmer declared Worker classes. The Pool class included implements this functionality and takes care of referencing in a sane manner. + Introduced in v1.0.0, the Pool implementation is the easiest and most efficient way of using multiple threads. + + + + Pool is a normal PHP object, and so instances should not be shared among contexts. + + + Synchronization: All of the objects that pthreads creates have built in synchronization in the ( familiar to java programmers ) form of ::wait and ::notify. Calling ::wait on an object will cause the context to wait for another context to call ::notify on the same object. diff --git a/reference/pthreads/versions.xml b/reference/pthreads/versions.xml index 4b41c0af97..18f0fbee3b 100644 --- a/reference/pthreads/versions.xml +++ b/reference/pthreads/versions.xml @@ -59,6 +59,13 @@ + + + + + + +