DPC2017: Zend Thread Safety , how PHP engine works in a threaded env - Julien Pauli

DPC2017: Zend Thread Safety , how PHP engine works in a threaded env - Julien Pauli
Zend thread Safety, also called ZTS, is a special way to build a thread safe PHP interpreter, usually used under Windows or Unixes requiring its help.
We'll start by the beginning, recalling attendees what threads are, why we use them, and what we can do with them.
Then, we'll remind ourselves on how the PHP engine works internally, before talking about how it isolates requests from threaded webserver.
This talk is about internal technical details of how parallel computation have been achieved into the PHP language.

This talk was given at the Dutch PHP Conference in 2017, organised and hosted by Ibuildings. Visit http://phpconference.nl or http://www.ibuildings.nl for more information.

RRelated Posts

How to execute part of PHP code Asynchronously

We will discuss about executing time consuming part of PHP scripts asynchronously via socket connection. This method is very simple and greatly increase the performance of your web applications. View

pthreads #2: Creating multiple threads

Demo creating many thread in Linux to add up some numbers. Pass values to the thread function as a pointer to a struct which holds some input data plus space to write a return value. Full code can be

Parallel PHP

A screencast being used to develop a lightening talk for 2015 UK conference


  • Smuuf
    This is an excellent introduction and summary for a person who wants to have a better insight of how this stuff works in PHP. Thank you!