PHP Multi-Threads / Multi-Processes

By the use of curl_multi_init() (PHP5) or stream_select() (PHP5) or  pcntl_fork (PHP4+), we can stimulate multi-thread/multi-process environment on PHP

External Links:

using stream_select: Develop multitasking applications with PHP V5

using curl_multi_init: PHP curl_multi example of parallel GET requests

using pcntl_fork (chinese): 多采多姿的程式筆記#1, #2

forum quote(chinese): EcStart PHP 技術討論論壇


但是如果把php當作shell script等等獨立的語言工具來用的話,是可以模擬的。





Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s