Home> php教程> php手册> body text

PHP实现多线程 异步 非阻塞

WBOY
Release: 2016-06-21 08:48:31
Original
1457 people have browsed it

目前,遇到过的用多线程异步非阻塞的情况:

1.发送电子邮件。

2.记录日志

3.手机消息推送(使用个推)。

4.发送短信


使用单线程同步阻塞花费时间很长


解决方案:

1.公司目前的解决方案:gearman

2.swoole:http://www.swoole.com/

具体的后面慢慢写吧!



Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!