Multithreading in PHP

前端 未结 6 552
有刺的猬
有刺的猬 2020-12-06 07:27

I recently read about http://php.net/pcntl and was woundering how good that functions works and if it would be smart to use multithreading in PHP since it isn\'t a core func

6条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-06 08:03

    Examples of multithreading working in PHP (with excerpts from their project pages):

    • Cron Multi-Threaded.

    As of October 25th, 2011, this module has reached "end of life" and is deprecated in favor of projects such as Elysia Cron. This module wasn't completely useless in that a core patch inspired by Cron MT was committed to D7.

    • Boost.

    ... provides static page caching for Drupal enabling a very significant performance and scalability boost for sites that receive mostly anonymous traffic. For shared hosting this is your best option in terms of improving performance. On dedicated servers, you may want to consider Varnish instead.

提交回复
热议问题