PHP における並列処理と非同期処理入門

218473ff7abad0fcd72865da2b23bb5b?s=47 memory
December 01, 2019

PHP における並列処理と非同期処理入門

- PHP Conference Japan 2019

- English Title:
An introduction of pararells processing and asynchronously processing on PHP

218473ff7abad0fcd72865da2b23bb5b?s=128

memory

December 01, 2019
Tweet

Transcript

  1. / / PHP 2019 PHP © - BASE, Inc.

  2. © - BASE, Inc. Who am I? (@m m r

    ) BASE GameWith PHP, TypeScript
  3. © - BASE, Inc. 


  4. © - BASE, Inc. 


  5. © - BASE, Inc.

  6. © - BASE, Inc. 


  7. © - BASE, Inc. 


  8. © - BASE, Inc.

  9. © - BASE, Inc.

  10. © - BASE, Inc.

  11. © - BASE, Inc.

  12. © - BASE, Inc.

  13. © - BASE, Inc. 1

  14. © - BASE, Inc. ===

  15. © - BASE, Inc. !==

  16. © - BASE, Inc. 2

  17. © - BASE, Inc. ===

  18. © - BASE, Inc. !==

  19. © - BASE, Inc. 3

  20. © - BASE, Inc. PHP

  21. © - BASE, Inc. PHP

  22. © - BASE, Inc.

  23. © - BASE, Inc.

  24. © - BASE, Inc. PHP

  25. © - BASE, Inc.

  26. © - BASE, Inc.

  27. © - BASE, Inc.

  28. © - BASE, Inc. 1 2 1 2 2

  29. © - BASE, Inc.

  30. © - BASE, Inc. YouTube Twitter YouTube Twitter Twitter

  31. © - BASE, Inc. YouTube Twitter YouTube Twitter Twitter Twitter

  32. © - BASE, Inc. YouTube Twitter YouTube Twitter Twitter Twitter

  33. © - BASE, Inc. YouTube Twitter YouTube Twitter Twitter Twitter

  34. © - BASE, Inc. YouTube Twitter YouTube Twitter Twitter Twitter

    ( )
  35. © - BASE, Inc.

  36. © - BASE, Inc. N >= : Go

  37. © - BASE, Inc.

  38. © - BASE, Inc.

  39. © - BASE, Inc. ( ) 1 2 1 2

    3 4 3 1
  40. © - BASE, Inc.

  41. © - BASE, Inc. A B A B A :

    https://en.wikipedia.org/wiki/Asynchrony_(computer_programming)
  42. © - BASE, Inc. JavaScript Ajax Promise, setTimeout, setInterval PHP

    Swoole
  43. © - BASE, Inc. 1 2 3 2 3

  44. © - BASE, Inc.

  45. © - BASE, Inc. 1 2 3 2

  46. © - BASE, Inc. PHP 


  47. © - BASE, Inc. PHP

  48. © - BASE, Inc. PHP PHP pcntl pthreads popen proc_open

    PHP
  49. © - BASE, Inc. PHP PHP pcntl pthreads popen proc_open

    PHP
  50. © - BASE, Inc. pcntl

  51. © - BASE, Inc. pcntl pnctl_fork

  52. © - BASE, Inc. pcntl pnctl_fork $processId 0

  53. © - BASE, Inc. pcntl pnctl_fork

  54. © - BASE, Inc. pcntl pnctl_fork 3

  55. © - BASE, Inc. pcntl pnctl_fork

  56. © - BASE, Inc. pcntl pnctl_fork 3

  57. © - BASE, Inc. pcntl pnctl_fork

  58. © - BASE, Inc. pcntl pnctl_fork 3

  59. © - BASE, Inc. pcntl pnctl_fork

  60. © - BASE, Inc. pthreads

  61. © - BASE, Inc. pthreads pthreads pcntl pthreads PHP 


    enable-maintainer-zts pthreads resource pcntl
  62. © - BASE, Inc. pthreads pthreads https://github.com/krakjoe/pthreads pthreads JavaScript Promise

    https://github.com/php-promise/promise
  63. © - BASE, Inc. pthreads

  64. © - BASE, Inc. pthreads Thread

  65. © - BASE, Inc. pthreads 3

  66. © - BASE, Inc. pthreads

  67. © - BASE, Inc. pthreads

  68. © - BASE, Inc. pthreads

  69. © - BASE, Inc. pthreads 3

  70. © - BASE, Inc. pthreads

  71. © - BASE, Inc. PHP 


  72. © - BASE, Inc. Swoole is an event-driven asynchronous &

    coroutine-based concurrency networking communication engine https://github.com/swoole/swoole-src
  73. © - BASE, Inc. Swoole coroutine https://github.com/swoole/swoole-src

  74. © - BASE, Inc. PHP Swoole Swoole coroutine Swoole coroutine

    coroutine
  75. © - BASE, Inc. PHP Swoole pcntl pthreads (SWOOLE_PROCESS)

  76. © - BASE, Inc. PHP go

  77. © - BASE, Inc. PHP go go

  78. © - BASE, Inc. PHP go

  79. © - BASE, Inc. PHP go 3

  80. © - BASE, Inc. PHP go

  81. © - BASE, Inc. PHP go 
 3

  82. © - BASE, Inc. PHP go

  83. © - BASE, Inc. PHP Swoole

  84. © - BASE, Inc.

  85. © - BASE, Inc.

  86. © - BASE, Inc. php-promise/php-promise 
 3 AWS Segmentation Fault

    OSS
  87. © - BASE, Inc. Laravel CLI enable-maintainer-zts

  88. © - BASE, Inc. Guzzle enable-maintainer-zts PHP

  89. © - BASE, Inc.

  90. © - BASE, Inc. Swoole PHP

  91. © - BASE, Inc. PHP HTTP PHP

  92. © - BASE, Inc. PHP Swoole PHP

  93. © - BASE, Inc.

  94. © - BASE, Inc.