Possible duplicate:Does PHP have streaming?
I found this: http://php.net/manual/en/function.pcntl-fork.php
But I can’t say if these flows or processes are confused. They use both words.
If you have an alternative solution, you need threads for this: I want to create a game in real time using web sockets, and I thought that in the background there is one process that generates one thread for each game (or room ) on request.
This is just a wrapper for the C fork () function. It creates processes, not threads. PHP does not support multithreading.
pcntl_fork . "" , "" :
pcntl_fork
pcntl_fork() , PID PPID.
PHP ( , - ).
, - , . .
* PHP does not support multithreading.