Both of these examples could be realized using fork() or socket_select(), though the first is not portable and the latter produces unnecessary overhead.
Just to nit-pick: non-blocking io is much more efficient than threads,
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php