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:
-
- Does the swoole coroutine belong to a process or a thread?
- The swoole coroutine belongs to threads. Coroutines are executed in threads. Coroutines are lightweight threads. The underlying implementation of Swoole's coroutines is single-threaded. Only one coroutine is working at the same time, and the threads will be scheduled by the operating system to multiple CPUs. Parallel execution.
- Swoole 2848 2022-03-14 15:37:57
-
- What is the usage of semaphore in swoole
- In swoole, semaphores are mainly used to protect shared resources so that there is only one process at a time; when the value of the semaphore is positive, it means that the thread under test can be locked for use. If the value of the semaphore is 0, then It means that the thread under test will enter the sleep queue and wait to be awakened.
- Swoole 2089 2022-03-14 15:29:31
-
- What is the difference between nodejs and swoole
- The difference between nodejs and swoole: 1. swoole provides coroutines, while nodejs does not provide coroutines; 2. By default, Swoole generates multiple worker threads on each server, while nodejs can support multiple workers per server. But other dependencies are required.
- Swoole 2852 2022-03-14 15:20:35
-
- Organize swoole knowledge points in detail (summary sharing)
- This article brings you relevant knowledge about swoole, including fastcgi requesting to the swoole master process to distribute to child processes, but it will not be like the php-fpm child process that exits after use and other related issues. I hope it will be useful to everyone. helpful.
- Swoole 3499 2022-02-28 18:13:52
-
- The latest swoole-cli can support Windows environment!
- This article brings you the relevant implementation steps for swoole-cli to support the Windows environment. The latest swoole-cli supports the Windows environment and is based on cygwin64. You can download it and use it. I hope it will be helpful to everyone.
- Swoole 4915 2022-02-25 16:18:32
-
- Use webSocket and Swoole to create a small chat room (coroutine)
- I wrote a simple asynchronous chat room before, and then I thought about it, let’s also do the coroutine, so I came up with this article. In fact, all the functions are pretty much the same, only a few places are different, and they are all the same. It's a simple place.
- Swoole 2669 2022-02-22 09:32:05
-
- What is the implementation principle of swoole coroutine?
- In swoole, the Swoole server receives data and triggers the onReceive callback in the worker process to generate a coroutine. Swoole creates a corresponding coroutine for each request. Sub-coroutines can also be created in the coroutine. The underlying implementation of the coroutine is single-threaded. Therefore, only one coroutine is working at the same time.
- Swoole 6852 2022-02-14 17:42:41
-
- How to implement scheduled tasks in swoole
- Method: 1. Use the "swoole_timer_after (time, function to be executed)" statement to execute the task after the specified time; 2. Use the "swoole_timer_tick (time, function to be executed, callback function)" statement to set an interval clock timer to execute the task regularly. .
- Swoole 3210 2022-02-14 14:30:46
-
- What is the difference between workerman and swoole
- Differences: 1. swoole is a socket communication framework implemented in C language, while workerman is a socket framework implemented in pure PHP; 2. In workerman, the socket is handled by the worker process, while swoole is handled by the reactor thread in the main process. of.
- Swoole 10034 2022-02-10 13:34:43
-
- What does swoole coroutine mean?
- The swoole coroutine is a more lightweight thread. A thread can have multiple coroutines. The coroutine is executed in the thread. It is mainly used to convert competing resources in the thread into collaborative operation and is suitable for processing IO-intensive tasks. .
- Swoole 3534 2022-02-10 11:58:44
-
- What is the difference between swoole process and thread?
- Differences: 1. A process is a program running in the system, and a thread belongs to a process. A process can have multiple threads, and a thread is the executor in the program; 2. Processes do not share any state, and Variables can be shared between threads.
- Swoole 12050 2022-02-10 11:41:03
-
- What is the difference between swoole and redis
- Differences: 1. Redis is a "key-value" storage system written by "Salvatore Sanfilippo", while Swoole is PHP's asynchronous, parallel, high-performance network communication engine; 2. Redis provides multiple language APIs, and Swoole provides PHP language asynchronous Multi-threaded server.
- Swoole 3124 2022-02-10 11:19:29
-
- What is the difference between swoole coroutine and go coroutine?
- Differences: 1. The go coroutine is based on multi-threading and can utilize multi-core CPUs, while the swoole coroutine is based on single-threading and cannot utilize multi-core CPUs; 2. The go coroutine does not need to declare the coroutine environment, while the swoole coroutine must To be used in the context of a coroutine.
- Swoole 5663 2022-02-10 11:08:46
-
- How to install swoole (full record sharing)
- Today, the swoole column will share with you the full record of swoole installation. Friends in need can take a look and understand it. If you have any questions, please leave a message for discussion.
- Swoole 4123 2022-01-30 05:00:31
-
- What is the difference between go language and swoole
- Differences: 1. The go language uses a single-threaded eventloop to handle IO events, while swoole uses a multi-threaded eventloop to handle IO events; 2. The golang language layer supports multi-threading, while the swoole language layer does not support multi-threading; 3. The go language has super global variables , swoole does not have super global variables.
- Swoole 4305 2022-01-27 18:07:50