PHP doesnot support multi-threading, but there are alternatives to it, not the best but in slang word- "workable".
And to listen on specific port using php, Use socket_listen
, socket_bind
, socket_create
, etc., functions of php, you may have a look on stream_select
functions too... if that helps.
Recommended page Parallel processing in PHP