Andrey Hristov wrote on 31/03/2015 16:02:
Currently in MT environment the task of data separation is pushed to the TSRM by using TLS. Now, if TSRM is reimplemented in a fashion that the data is not stored by using TLS but other mechanism and cooperative multitasking is not something that can't be done. The truth is that userland is isolated from the process data space so for it it won't make a difference. It's just that using threads for separation is the easiest thing (after process per script). The good thing is that TSRM is an abstraction for its clients.

Isn't the point that to get a real advantage from these technologies, the *userland* needs to be aware of threads / events? That's what requires a fundamental rethink of the language.

TSRM/TLS allows you to drop from one-process-per-request to one-thread-per-request, but it doesn't save you the expense of repeatedly building up and tearing down an execution environment.

Regards,
--
Rowan Collins
[IMSoP]

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to