Install PHP 7.2 With Pthreads for multithreading
An example of using a thread pool for handling threads more efficiently.
This tutorial will show you how to recompile PHP with ZTS enabled, before then adding the pthreads extension in order for us to be able to easily write multithreaded PHP CLI scripts.
Install PHP 7.0 With Pthreads for multithreading on Ubuntu 16.04
This tutorial will show you how to recompile PHP with ZTS enabled, before then adding the pthreads extension in order for us to be able to easily write multithreaded PHP CLI scripts.