- Parallel Programming with pthreads in PHP - The Fundamentals
- Walk through all of pthreads' classes (
Threaded
,Thread
,Worker
,Volatile
, andPool
), including mentioning when to use them (context recycling, ...), how to use them, and so on. - cover immutability and its counterpart volatility
- cover synchronization
- Walk through all of pthreads' classes (
- Parallel Programming with pthreads in PHP - The Intermediate
- doing things the pthreads way
- Cannot pass in DB connections (not
Threaded
objects, unsafe to manipulate), should be instantiated within the new thread instead - resources unsafe...
- arrays (explicity defining arrays as Volatile objects upfront)...
- Use with Composer
- Static members are thread local (impacts?)
- Unusable
global
variables inThreaded
classes Threaded::isGarbage
(enforced viaCollectable
) and how pthreads handles the collection of it- Explicit array casting
Threaded::extend
for runtime extending ofThreaded
)- Performance techniques?
- Parallel Programming with pthreads in PHP - Upgrading from pthreads v2 to v3
Anything else?