current location:Home > Technical Articles > PHP Framework > Swoole

  • Does the swoole coroutine belong to a process or a thread?
    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
    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
    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)
    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!
    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)
    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?
    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
    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
    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?
    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?
    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
    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?
    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)
    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
    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

Tool Recommendations

jQuery enterprise message form contact code

jQuery enterprise message form contact code is a simple and practical enterprise message form and contact us introduction page code.
form button
2024-02-29

HTML5 MP3 music box playback effects

HTML5 MP3 music box playback special effect is an mp3 music player based on HTML5 css3 to create cute music box emoticons and click the switch button.

HTML5 cool particle animation navigation menu special effects

HTML5 cool particle animation navigation menu special effect is a special effect that changes color when the navigation menu is hovered by the mouse.
Menu navigation
2024-02-29

jQuery visual form drag and drop editing code

jQuery visual form drag and drop editing code is a visual form based on jQuery and bootstrap framework.
form button
2024-02-29

Organic fruit and vegetable supplier web template Bootstrap5

An organic fruit and vegetable supplier web template-Bootstrap5
Bootstrap template
2023-02-03

Bootstrap3 multifunctional data information background management responsive web page template-Novus

Bootstrap3 multifunctional data information background management responsive web page template-Novus
backend template
2023-02-02

Real estate resource service platform web page template Bootstrap5

Real estate resource service platform web page template Bootstrap5
Bootstrap template
2023-02-02

Simple resume information web template Bootstrap4

Simple resume information web template Bootstrap4
Bootstrap template
2023-02-02

Cute summer elements vector material (EPS PNG)

This is a cute summer element vector material, including the sun, sun hat, coconut tree, bikini, airplane, watermelon, ice cream, ice cream, cold drink, swimming ring, flip-flops, pineapple, conch, shell, starfish, crab, Lemons, sunscreen, sunglasses, etc., the materials are provided in EPS and PNG formats, including JPG previews.
PNG material
2024-05-09

Four red 2023 graduation badges vector material (AI EPS PNG)

This is a red 2023 graduation badge vector material, four in total, available in AI, EPS and PNG formats, including JPG preview.
PNG material
2024-02-29

Singing bird and cart filled with flowers design spring banner vector material (AI EPS)

This is a spring banner vector material designed with singing birds and a cart full of flowers. It is available in AI and EPS formats, including JPG preview.
banner picture
2024-02-29

Golden graduation cap vector material (EPS PNG)

This is a golden graduation cap vector material, available in EPS and PNG formats, including JPG preview.
PNG material
2024-02-27

Home Decor Cleaning and Repair Service Company Website Template

Home Decoration Cleaning and Maintenance Service Company Website Template is a website template download suitable for promotional websites that provide home decoration, cleaning, maintenance and other service organizations. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-05-09

Fresh color personal resume guide page template

Fresh color matching personal job application resume guide page template is a personal job search resume work display guide page web template download suitable for fresh color matching style. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-29

Designer Creative Job Resume Web Template

Designer Creative Job Resume Web Template is a downloadable web template for personal job resume display suitable for various designer positions. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28

Modern engineering construction company website template

The modern engineering and construction company website template is a downloadable website template suitable for promotion of the engineering and construction service industry. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28