Research and Practice of Swoole Asynchronous Multithreading Design Method

2018 
The mobile Internet is developing rapidly today, asynchronous processing mechanism is employed to handle the growing concurrency issues. Recently, the swoole has gained more and more attention in the asynchronous mechanism for handling high concurrency scenarios. This paper analyzes the implementation of the swoole, then, tests the performance of server based on the swoole. The principle of multithreading and the application of Swoole extension asynchronous multithreading in PHP are outlined. It analyzes the specific implementation of the swoole asynchronous multi-threading on Linux system. Next, its principle is applied onto implementing a simple chatting room. The capability of the swoole concurrent processing is also tested. Finally, combined with the swoole to realize the asynchronous multithreading characteristics and experimental results, explain that PHP+Swoole can replace C++, Java and other complex programming languages as servers for high concurrent scenarios, and supplements the defect of PHP in network programming. At the same time pointed out the asynchronous multithreading prospect application for Swoole and the impact on the PHP language development.
    • Correction
    • Source
    • Cite
    • Save
    • Machine Reading By IdeaReader
    3
    References
    0
    Citations
    NaN
    KQI
    []