Preemptive multitasking using coroutines in Open Swoole

Published:

By Bruce Dou @ Swoole Labs

@ PHPLondon at London UK

PHP Swoole enables PHP developers to write high-performance, scalable, concurrent TCP, UDP, Unix socket, HTTP, WebSocket services in PHP programming language.

Compared with other async programming frameworks or software such as Nginx, Tornado, Node.js, Swoole has the built-in async, coroutines, multiple threads I/O modules.

Preemptive scheduling is the key to building a high performance, low latency, near the real-time system.

Compared with other programming languages or frameworks, Open Swoole is one of the very few supports preemptive multitasking using coroutines.

This talk we like to introduce the coroutines in Open Swoole and the implementation of a multitasking coroutines scheduler in Open Swoole.