multithreading - Running multiple threads of a php script on server -
i trying use fat controller handle multiple threads of php script on unix server. script command follows php script.php arg1 thid
arg1
arument , thid
thread id. trying figure out how append both argument , thread id command i'm having no luck. guys know how this, or similar manager can me need.
why don't use screen instead?
screen -a -m -d -s some_name_for_screen php script.php arg1 arg2 arg3
to attach process use:
screen -x some_name_for_screen
to detach
press ctrl+a+d
to list processes type
screen -list
-a auto console size -m -d means not attach created screen -s name named screen
then there command
and dont think it's called multithreading :)
Comments
Post a Comment