Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Swooleで実装するPHP非同期処理の世界/phpcondo2019-swoole

 Swooleで実装するPHP非同期処理の世界/phpcondo2019-swoole

2019-09-21 に開催されたPHPカンファレンス北海道2019で発表した資料です。

KOYAMA Tetsuji

September 21, 2019
Tweet

More Decks by KOYAMA Tetsuji

Other Decks in Programming

Transcript

  1. PHPΧϯϑΝϨϯε๺ւಓ2019 2019-09-21 1)14XPPMF w Φʔϓϯιʔε "QBDIFϥΠηϯε  w 1)1&YUFOTJPO w

    $$ #PPTU$POUFYU w ίʔϧόοΫίϧʔνϯ w Πϕϯτۦಈͷඇಉظ*0 w )551)5518FC4PDLFU5$16%1 w ϚΠΫϩඵλεΫεέδϡʔϥ w ϓϩηεϚωʔδϟ w ϓϦΤϯϓςΟϒεέδϡʔϦϯά
  2. PHPΧϯϑΝϨϯε๺ւಓ2019 2019-09-21 ࠷ॳͷҰา $ php co.php start coro 1 start

    to resume 1 @1 resume coro 1 @1 start to resume 1 @2 resume coro 1 @2 main
  3. PHPΧϯϑΝϨϯε๺ւಓ2019 2019-09-21 ίϧʔνϯྫ $ php co2.php write...: data/00.out write...: data/01.out

    write...: data/02.out write...: data/03.out write...: data/04.out write: data/00.out done write: data/01.out done write: data/02.out done write: data/03.out done write: data/04.out done
  4. PHPΧϯϑΝϨϯε๺ւಓ2019 2019-09-21 એ఻ w ݄຤ʹٕज़ධ࿦ࣾΑΓʮΈΜͳͷ1)1ʯ͕ग़·͢ w 1)1ΛςʔϚʹͨ͠ϜοΫ w ϖʔδલޙ w

    Ձ֨ະఆ w 4PGUXBSF%FTJHO೥݄߸ ൃച  w λΠΞοϓಛू1 w 8&# %#13&44WPM ൃച  w 4XPPMFʹؔ͢ΔλΠΞοϓهࣄ1