2 ms·
PHP doesn’t ship with an API for creating threads, but PHP can be executed in threads depending on setup. And it does that without using a GIL, instead it inter
by tored 5y ago
PHP doesn’t ship with an API for creating threads, but PHP can be executed in threads depending on setup. And it does that without using a GIL, instead it internally uses something called Thread-Safe Resource Manager
https://github.com/php/php-src/tree/master/TSRM https://github.com/php/php-src/tree/master/TSRM
I have written about this recently
https://news.ycombinator.com/item?id=28692014 https://news.ycombinator.com/item?id=28692014