Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Concurrency

Concurrency, sometimes misspelled concurency, is a concept in computing where multiple tasks are in progress at the same time.

PHP uses several ways to handle concurrency:

  • Externally, by the webserver or PHP-fpm
  • Internally, with forked processes, with pcntl
  • Internally, with threads, with parallel
  • Cooperating, with fibers
  • Non-blocking IO, with swoole or amphp.

Documentation

See Also