Home  >  Article  >  Backend Development  >  Cleverly solve the problem that PHP cannot implement multi-threading_PHP tutorial

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

WBOY
WBOYOriginal
2016-07-22 09:01:57894browse

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...
Statement:
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