Cleverly solve the problem that PHP cannot implement multi-threading_PHP tutorial

WBOY
Release: 2016-07-22 09:01:57
Original
894 people have browsed it

Is there a way to implement multi-threading in PHP? Suppose you are writing a PHP application based on multiple servers. Ideally, you would send requests to multiple servers at the same time, rather than one after another. Is it possible? When someone wants to implement concurrency functions, they usually think of using fork or spawn threads, but when they find that PHP does not support multi-threading, they may change their minds and use some not good enough languages, such as Perl.

php100 recommended reading:

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/445880.htmlTechArticleIs there a way to implement multi-threading in PHP? Suppose you are writing a PHP application based on multiple servers. Ideally, you would send requests to multiple servers at the same time, rather than one after another...
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 Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template