Possible Duplicate:
Does PHP have threading?
I found this: http://php.net/manual/en/function.pcntl-fork.php
But I can't tell if those are threads or processes, I'm confused. They use both words.
In case you have an alternate solution, this is what I need threads for: I want to create a real-time game using web sockets, and I thought of having a single process running in the background, that spawns one thread for each game (or room) on demand.