current location:Home > Technical Articles > PHP Framework > Swoole
- Direction:
- All web3.0 Backend Development Web Front-end Database Operation and Maintenance Development Tools PHP Framework Daily Programming WeChat Applet Common Problem Other Tech CMS Tutorial Java System Tutorial Computer Tutorials Hardware Tutorial Mobile Tutorial Software Tutorial Mobile Game Tutorial
- Classify:
-
- Is swoole multi-process or multi-threaded?
- swoole is multi-process. Since the PHP language does not support multi-threading, Swoole uses multi-process mode. There is process memory isolation in multi-process mode. When global variables and super-global variables are modified in the working process, it will be invalid in other processes.
- Swoole 4310 2019-12-06 14:23:29
-
- How to install swoole under windows
- How to install swoole under windows: 1. Download and install cgywin, double-click the installation package to install it. 2. Unzip the downloaded swoole to the home folder in the cgywin installation directory, then open the cgywin software and enter the swoole directory to compile.
- Swoole 16071 2019-12-06 14:23:13
-
- Does swoole support multiple ports and different protocols?
- support. Swoole-1.8.0 adds support for multi-port mixed protocols. Server can listen to multiple ports, and each port can be set with different protocol processing methods (set) and callback functions (on). SSL/TLS transport encryption can also be enabled only for specific ports.
- Swoole 2563 2019-12-06 14:14:48
-
- Where are swoole used?
- Swoole is used in two scenarios: communication with hardware devices (positioning devices) and IM systems (used for chat communication on live broadcast pages). All positioning devices need to be received in real time and real-time track records displayed on the map.
- Swoole 2673 2019-12-06 14:10:34
-
- How to apply swoole's timer
- swoole provides JavaScript-like setInterval/setTimeout asynchronous high-precision timers with millisecond-level granularity. Usage: $server->tick(1000, function() use ($server, $fd) {});.
- Swoole 3275 2019-12-06 13:50:47
-
- How to call swoole's worker
- swooleWorker runs in a multi-process mode, master-> n * worker mode. The more worker processes are opened, the greater the server load capacity, but the corresponding server will occupy more memory.
- Swoole 2244 2019-12-06 13:43:42
-
- Is swoole's task a thread or a process?
- The task of swoole is a process, and the role of the task process is to handle some relatively time-consuming tasks. For example, for a certain event, it is necessary to send event emails to 1 million users. Push the updates of certain big Vs. For example, if a big V posts a new message, fans need to get the updates in a timely manner.
- Swoole 2424 2019-12-06 13:28:54
-
- What exactly is swoole?
- Swoole is actually an engine for network communication and asynchronous IO, a basic library. PHPer can use swoole to implement functions that PHP could not achieve in the past. swoole opens the door to another world for PHPer.
- Swoole 3284 2019-12-06 13:22:55
-
- Can swoole be multi-threaded?
- Swoole can be multi-threaded, but the multi-threading of swoole is actually multiple processes. Creating too many processes and switching is very expensive. If you can use pthreads, it is recommended to use pthreads.
- Swoole 4684 2019-12-06 13:13:58
-
- Can't swoole support winows?
- Swoole does not originally support installation under Windows, so we need to install Cygwin to use it. Cygwin official address: http://www.cygwin.com/; swoole to download from the official website.
- Swoole 3016 2019-12-06 11:52:57
-
- Reasons and solutions for make error when installing swoole
- The reason why make error occurs when installing swoole: openssl/ssl.h cannot be found. First, you must confirm whether openssl is installed on the computer. Solution: Use the command "brew install openssl" to install openssl.
- Swoole 5728 2019-12-06 11:44:04
-
- swoole compilation and installation steps
- Swoole extensions are built according to PHP standard extensions. Use phpize to generate PHP compilation configuration, ./configure to do compilation configuration detection, make to compile, and make install to install.
- Swoole 2179 2019-12-06 11:25:07
-
- Does swoole have to be used with PHP?
- swoole and php are a good combination. The functions provided by swoole are exactly the functions missing in php. As a network communication framework, swoole only requires a few simple lines of settings to set up a server. From now on, we will continue to improve the business code.
- Swoole 2848 2019-12-06 11:19:28
-
- How is swoole better than java?
- Developing applications based on frameworks, whether Swoole or Java, is equally difficult for users. However, it is easy to make mistakes when developing directly based on Swoole, which requires developers to have higher quality.
- Swoole 3844 2019-12-06 11:11:11
-
- The difference between swoole and libevent
- Swoole is a PHP asynchronous network communication engine for production environments; and Libevent is a lightweight open source high-performance event notification library written in C language. Swoole Socket network development framework is based on php's libevent and pcntl modules, and can only be used on Linux
- Swoole 2871 2019-12-06 10:53:57