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

20181107_off_the_main_thread.pdf

ozaki25
November 07, 2018

 20181107_off_the_main_thread.pdf

ozaki25

November 07, 2018
Tweet

More Decks by ozaki25

Other Decks in Technology

Transcript

  1. P⒎UIFNBJOUISFBEύλʔϯ   Worker.js 8PSLFSΛੜ੒͠
 ผεϨουΛ্ཱͪ͛Δ JECVUUPOͷཁૉΛ ΫϦοΫͨ͠Β PO$MJDLΛ࣮ߦ 8PSLFSʹϝοηʔδૹ৴

    ϝοηʔδΛड৴ͨ͠Β PO.FTTBHFΛ࣮ߦ ϝοηʔδ͕HFOFSBUFDPMPSͩͬͨΒ HFOFSBUF$PMPS$PEFΛݺͼग़͢ HFOFSBUF$PMPS$PEF͸͖ͬ͞ͱಉ͡ ඵؒϒϩοΩϯάͯ͠ ΧϥʔίʔυΛฦ͢
  2. P⒎UIFNBJOUISFBEύλʔϯ   Worker.js 8PSLFSΛੜ੒͠
 ผεϨουΛ্ཱͪ͛Δ JECVUUPOͷཁૉΛ ΫϦοΫͨ͠Β PO$MJDLΛ࣮ߦ 8PSLFSʹϝοηʔδૹ৴

    ϝοηʔδΛड৴ͨ͠Β PO.FTTBHFΛ࣮ߦ ϝοηʔδ͕HFOFSBUFDPMPSͩͬͨΒ HFOFSBUF$PMPS$PEFΛݺͼग़͢ HFOFSBUF$PMPS$PEF͸͖ͬ͞ͱಉ͡ ඵؒϒϩοΩϯάͯ͠ ΧϥʔίʔυΛฦ͢ ੜ੒ͨ͠ΧϥʔίʔυΛ ϝΠϯεϨουʹฦ٫
  3. P⒎UIFNBJOUISFBEύλʔϯ   Worker.js 8PSLFSΛੜ੒͠
 ผεϨουΛ্ཱͪ͛Δ JECVUUPOͷཁૉΛ ΫϦοΫͨ͠Β PO$MJDLΛ࣮ߦ 8PSLFSʹϝοηʔδૹ৴

    ϝοηʔδΛड৴ͨ͠Β PO.FTTBHFΛ࣮ߦ ϝοηʔδ͕HFOFSBUFDPMPSͩͬͨΒ HFOFSBUF$PMPS$PEFΛݺͼग़͢ HFOFSBUF$PMPS$PEF͸͖ͬ͞ͱಉ͡ ඵؒϒϩοΩϯάͯ͠ ΧϥʔίʔυΛฦ͢ ੜ੒ͨ͠ΧϥʔίʔυΛ ϝΠϯεϨουʹฦ٫ 8PSLFS͔ΒϝοηʔδΛड৴͢Δͱ PO.FTTBHFΛ࣮ߦ
  4. P⒎UIFNBJOUISFBEύλʔϯ   Worker.js 8PSLFSΛੜ੒͠
 ผεϨουΛ্ཱͪ͛Δ JECVUUPOͷཁૉΛ ΫϦοΫͨ͠Β PO$MJDLΛ࣮ߦ 8PSLFSʹϝοηʔδૹ৴

    ϝοηʔδΛड৴ͨ͠Β PO.FTTBHFΛ࣮ߦ ϝοηʔδ͕HFOFSBUFDPMPSͩͬͨΒ HFOFSBUF$PMPS$PEFΛݺͼग़͢ HFOFSBUF$PMPS$PEF͸͖ͬ͞ͱಉ͡ ඵؒϒϩοΩϯάͯ͠ ΧϥʔίʔυΛฦ͢ ੜ੒ͨ͠ΧϥʔίʔυΛ ϝΠϯεϨουʹฦ٫ 8PSLFS͔ΒϝοηʔδΛड৴͢Δͱ PO.FTTBHFΛ࣮ߦ 8PSLFS͔Βड৴ͨ͠ΧϥʔίʔυΛ
 CVUUPOͷഎܠ৭ʹηοτ
  5. CMPDLJOH͢Δύλʔϯ w ॲཧͷྲྀΕ w ˒CMPDLJOHύλʔϯͷϘλϯΛΫϦοΫ w ˒λεΫ͕Ωϡʔʹ௥Ճ͞ΕΔ w ˒ΫϦοΫ࣌ͷॲཧ͕࣮ߦ͞ΕΔ w

    ˗ਖ਼ৗύλʔϯͷϘλϯΛΫϦοΫ w ˗λεΫ͕Ωϡʔʹ௥Ճ͞ΕΔ w ˒എܠ৭͕ը໘ʹ൓ө͞ΕΔ w ˗ΫϦοΫ࣌ͷॲཧ͕࣮ߦ͞ΕΔ w ˗എܠ৭͕ը໘ʹ൓ө͞ΕΔ  
  6. CMPDLJOH͢Δύλʔϯ w ॲཧͷྲྀΕ w ˒CMPDLJOHύλʔϯͷϘλϯΛΫϦοΫ w ˒λεΫ͕Ωϡʔʹ௥Ճ͞ΕΔ w ˒ΫϦοΫ࣌ͷॲཧ͕࣮ߦ͞ΕΔ w

    ˗ਖ਼ৗύλʔϯͷϘλϯΛΫϦοΫ w ˗λεΫ͕Ωϡʔʹ௥Ճ͞ΕΔ w ˒എܠ৭͕ը໘ʹ൓ө͞ΕΔ w ˗ΫϦοΫ࣌ͷॲཧ͕࣮ߦ͞ΕΔ w ˗എܠ৭͕ը໘ʹ൓ө͞ΕΔ   αϦЀϕϸЄϤ όφμ όφμ咲ኞ
  7. CMPDLJOH͢Δύλʔϯ w ॲཧͷྲྀΕ w ˒CMPDLJOHύλʔϯͷϘλϯΛΫϦοΫ w ˒λεΫ͕Ωϡʔʹ௥Ճ͞ΕΔ w ˒ΫϦοΫ࣌ͷॲཧ͕࣮ߦ͞ΕΔ w

    ˗ਖ਼ৗύλʔϯͷϘλϯΛΫϦοΫ w ˗λεΫ͕Ωϡʔʹ௥Ճ͞ΕΔ w ˒എܠ৭͕ը໘ʹ൓ө͞ΕΔ w ˗ΫϦοΫ࣌ͷॲཧ͕࣮ߦ͞ΕΔ w ˗എܠ৭͕ը໘ʹ൓ө͞ΕΔ   αϦЀϕϸЄϤ κϲЄ΁فΡ
  8. CMPDLJOH͢Δύλʔϯ w ॲཧͷྲྀΕ w ˒CMPDLJOHύλʔϯͷϘλϯΛΫϦοΫ w ˒λεΫ͕Ωϡʔʹ௥Ճ͞ΕΔ w ˒ΫϦοΫ࣌ͷॲཧ͕࣮ߦ͞ΕΔ w

    ˗ਖ਼ৗύλʔϯͷϘλϯΛΫϦοΫ w ˗λεΫ͕Ωϡʔʹ௥Ճ͞ΕΔ w ˒എܠ৭͕ը໘ʹ൓ө͞ΕΔ w ˗ΫϦοΫ࣌ͷॲཧ͕࣮ߦ͞ΕΔ w ˗എܠ৭͕ը໘ʹ൓ө͞ΕΔ   αϦЀϕϸЄϤ όφμ͢䋚ᤈͫ΢Ρ ॏ͍ॲཧ
  9. CMPDLJOH͢Δύλʔϯ w ॲཧͷྲྀΕ w ˒CMPDLJOHύλʔϯͷϘλϯΛΫϦοΫ w ˒λεΫ͕Ωϡʔʹ௥Ճ͞ΕΔ w ˒ΫϦοΫ࣌ͷॲཧ͕࣮ߦ͞ΕΔ w

    ˗ਖ਼ৗύλʔϯͷϘλϯΛΫϦοΫ w ˗λεΫ͕Ωϡʔʹ௥Ճ͞ΕΔ w ˒എܠ৭͕ը໘ʹ൓ө͞ΕΔ w ˗ΫϦοΫ࣌ͷॲཧ͕࣮ߦ͞ΕΔ w ˗എܠ৭͕ը໘ʹ൓ө͞ΕΔ   αϦЀϕϸЄϤ όφμ咲ኞ ॏ͍ॲཧ࣮ߦத
  10. CMPDLJOH͢Δύλʔϯ w ॲཧͷྲྀΕ w ˒CMPDLJOHύλʔϯͷϘλϯΛΫϦοΫ w ˒λεΫ͕Ωϡʔʹ௥Ճ͞ΕΔ w ˒ΫϦοΫ࣌ͷॲཧ͕࣮ߦ͞ΕΔ w

    ˗ਖ਼ৗύλʔϯͷϘλϯΛΫϦοΫ w ˗λεΫ͕Ωϡʔʹ௥Ճ͞ΕΔ w ˒എܠ৭͕ը໘ʹ൓ө͞ΕΔ w ˗ΫϦοΫ࣌ͷॲཧ͕࣮ߦ͞ΕΔ w ˗എܠ৭͕ը໘ʹ൓ө͞ΕΔ   αϦЀϕϸЄϤ κϲЄ΁فΡ ॏ͍ॲཧ࣮ߦத ଴ͨ͞ΕΔ
  11. CMPDLJOH͢Δύλʔϯ w ॲཧͷྲྀΕ w ˒CMPDLJOHύλʔϯͷϘλϯΛΫϦοΫ w ˒λεΫ͕Ωϡʔʹ௥Ճ͞ΕΔ w ˒ΫϦοΫ࣌ͷॲཧ͕࣮ߦ͞ΕΔ w

    ˗ਖ਼ৗύλʔϯͷϘλϯΛΫϦοΫ w ˗λεΫ͕Ωϡʔʹ௥Ճ͞ΕΔ w ˒എܠ৭͕ը໘ʹ൓ө͞ΕΔ w ˗ΫϦοΫ࣌ͷॲཧ͕࣮ߦ͞ΕΔ w ˗എܠ৭͕ը໘ʹ൓ө͞ΕΔ   䋚ᤈ奾ຎ͢ݍฉͫ΢Ρ ଴ͨ͞ΕΔ
  12. CMPDLJOH͢Δύλʔϯ w ॲཧͷྲྀΕ w ˒CMPDLJOHύλʔϯͷϘλϯΛΫϦοΫ w ˒λεΫ͕Ωϡʔʹ௥Ճ͞ΕΔ w ˒ΫϦοΫ࣌ͷॲཧ͕࣮ߦ͞ΕΔ w

    ˗ਖ਼ৗύλʔϯͷϘλϯΛΫϦοΫ w ˗λεΫ͕Ωϡʔʹ௥Ճ͞ΕΔ w ˒എܠ৭͕ը໘ʹ൓ө͞ΕΔ w ˗ΫϦοΫ࣌ͷॲཧ͕࣮ߦ͞ΕΔ w ˗എܠ৭͕ը໘ʹ൓ө͞ΕΔ   όφμ͢䋚ᤈͫ΢Ρ
  13. CMPDLJOH͢Δύλʔϯ w ॲཧͷྲྀΕ w ˒CMPDLJOHύλʔϯͷϘλϯΛΫϦοΫ w ˒λεΫ͕Ωϡʔʹ௥Ճ͞ΕΔ w ˒ΫϦοΫ࣌ͷॲཧ͕࣮ߦ͞ΕΔ w

    ˗ਖ਼ৗύλʔϯͷϘλϯΛΫϦοΫ w ˗λεΫ͕Ωϡʔʹ௥Ճ͞ΕΔ w ˒എܠ৭͕ը໘ʹ൓ө͞ΕΔ w ˗ΫϦοΫ࣌ͷॲཧ͕࣮ߦ͞ΕΔ w ˗എܠ৭͕ը໘ʹ൓ө͞ΕΔ   䋚ᤈ奾ຎ͢ݍฉͫ΢Ρ
  14. P⒎UIFNBJOUISFBEύλʔϯ w ॲཧͷྲྀΕ w +4ಡΈࠐΈ࣌ʹ8PSLFS͕ੜ੒͞ΕΔ w ˒P⒎UIFNBJOUISFBEύλʔϯͷϘλϯΛΫϦοΫ w ˒λεΫ͕Ωϡʔʹ௥Ճ͞ΕΔ w

    ˒ΫϦοΫ࣌ͷॲཧ͕࣮ߦ͞Ε8PSLFSʹλεΫ௥Ճ w ˒8PSLFSͰλεΫ͕࣮ߦ͞ΕΔ w ˗ਖ਼ৗύλʔϯͷϘλϯΛΫϦοΫ w ˗λεΫ͕Ωϡʔʹ௥Ճ͞ΕΔ w ˗ΫϦοΫ࣌ͷॲཧ͕࣮ߦ͞ΕΔ w ˗എܠ৭͕ը໘ʹ൓ө͞ΕΔ w ˒എܠ৭͕ը໘ʹ൓ө͞ΕΔ  
  15. P⒎UIFNBJOUISFBEύλʔϯ w ॲཧͷྲྀΕ w +4ಡΈࠐΈ࣌ʹ8PSLFS͕ੜ੒͞ΕΔ w ˒P⒎UIFNBJOUISFBEύλʔϯͷϘλϯΛΫϦοΫ w ˒λεΫ͕Ωϡʔʹ௥Ճ͞ΕΔ w

    ˒ΫϦοΫ࣌ͷॲཧ͕࣮ߦ͞Ε8PSLFSʹλεΫ௥Ճ w ˒8PSLFSͰλεΫ͕࣮ߦ͞ΕΔ w ˗ਖ਼ৗύλʔϯͷϘλϯΛΫϦοΫ w ˗λεΫ͕Ωϡʔʹ௥Ճ͞ΕΔ w ˗ΫϦοΫ࣌ͷॲཧ͕࣮ߦ͞ΕΔ w ˗എܠ৭͕ը໘ʹ൓ө͞ΕΔ w ˒എܠ৭͕ը໘ʹ൓ө͞ΕΔ   αϦЀϕϸЄϤ αϦЀϕϸЄϤ main thread worker thread
  16. P⒎UIFNBJOUISFBEύλʔϯ w ॲཧͷྲྀΕ w +4ಡΈࠐΈ࣌ʹ8PSLFS͕ੜ੒͞ΕΔ w ˒P⒎UIFNBJOUISFBEύλʔϯͷϘλϯΛΫϦοΫ w ˒λεΫ͕Ωϡʔʹ௥Ճ͞ΕΔ w

    ˒ΫϦοΫ࣌ͷॲཧ͕࣮ߦ͞Ε8PSLFSʹλεΫ௥Ճ w ˒8PSLFSͰλεΫ͕࣮ߦ͞ΕΔ w ˗ਖ਼ৗύλʔϯͷϘλϯΛΫϦοΫ w ˗λεΫ͕Ωϡʔʹ௥Ճ͞ΕΔ w ˗ΫϦοΫ࣌ͷॲཧ͕࣮ߦ͞ΕΔ w ˗എܠ৭͕ը໘ʹ൓ө͞ΕΔ w ˒എܠ৭͕ը໘ʹ൓ө͞ΕΔ   αϦЀϕϸЄϤ αϦЀϕϸЄϤ main thread worker thread όφμ όφμ咲ኞ
  17. P⒎UIFNBJOUISFBEύλʔϯ w ॲཧͷྲྀΕ w +4ಡΈࠐΈ࣌ʹ8PSLFS͕ੜ੒͞ΕΔ w ˒P⒎UIFNBJOUISFBEύλʔϯͷϘλϯΛΫϦοΫ w ˒λεΫ͕Ωϡʔʹ௥Ճ͞ΕΔ w

    ˒ΫϦοΫ࣌ͷॲཧ͕࣮ߦ͞Ε8PSLFSʹλεΫ௥Ճ w ˒8PSLFSͰλεΫ͕࣮ߦ͞ΕΔ w ˗ਖ਼ৗύλʔϯͷϘλϯΛΫϦοΫ w ˗λεΫ͕Ωϡʔʹ௥Ճ͞ΕΔ w ˗ΫϦοΫ࣌ͷॲཧ͕࣮ߦ͞ΕΔ w ˗എܠ৭͕ը໘ʹ൓ө͞ΕΔ w ˒എܠ৭͕ը໘ʹ൓ө͞ΕΔ   αϦЀϕϸЄϤ αϦЀϕϸЄϤ main thread worker thread κϲЄ΁فΡ
  18. P⒎UIFNBJOUISFBEύλʔϯ w ॲཧͷྲྀΕ w +4ಡΈࠐΈ࣌ʹ8PSLFS͕ੜ੒͞ΕΔ w ˒P⒎UIFNBJOUISFBEύλʔϯͷϘλϯΛΫϦοΫ w ˒λεΫ͕Ωϡʔʹ௥Ճ͞ΕΔ w

    ˒ΫϦοΫ࣌ͷॲཧ͕࣮ߦ͞Ε8PSLFSʹλεΫ௥Ճ w ˒8PSLFSͰλεΫ͕࣮ߦ͞ΕΔ w ˗ਖ਼ৗύλʔϯͷϘλϯΛΫϦοΫ w ˗λεΫ͕Ωϡʔʹ௥Ճ͞ΕΔ w ˗ΫϦοΫ࣌ͷॲཧ͕࣮ߦ͞ΕΔ w ˗എܠ৭͕ը໘ʹ൓ө͞ΕΔ w ˒എܠ৭͕ը໘ʹ൓ө͞ΕΔ   αϦЀϕϸЄϤ αϦЀϕϸЄϤ main thread worker thread Worker΁㳌ቘΨ঩捏 όφμ όφμ咲ኞ
  19. P⒎UIFNBJOUISFBEύλʔϯ w ॲཧͷྲྀΕ w +4ಡΈࠐΈ࣌ʹ8PSLFS͕ੜ੒͞ΕΔ w ˒P⒎UIFNBJOUISFBEύλʔϯͷϘλϯΛΫϦοΫ w ˒λεΫ͕Ωϡʔʹ௥Ճ͞ΕΔ w

    ˒ΫϦοΫ࣌ͷॲཧ͕࣮ߦ͞Ε8PSLFSʹλεΫ௥Ճ w ˒8PSLFSͰλεΫ͕࣮ߦ͞ΕΔ w ˗ਖ਼ৗύλʔϯͷϘλϯΛΫϦοΫ w ˗λεΫ͕Ωϡʔʹ௥Ճ͞ΕΔ w ˗ΫϦοΫ࣌ͷॲཧ͕࣮ߦ͞ΕΔ w ˗എܠ৭͕ը໘ʹ൓ө͞ΕΔ w ˒എܠ৭͕ը໘ʹ൓ө͞ΕΔ   αϦЀϕϸЄϤ αϦЀϕϸЄϤ main thread worker thread κϲЄ΁فΡ
  20. P⒎UIFNBJOUISFBEύλʔϯ w ॲཧͷྲྀΕ w +4ಡΈࠐΈ࣌ʹ8PSLFS͕ੜ੒͞ΕΔ w ˒P⒎UIFNBJOUISFBEύλʔϯͷϘλϯΛΫϦοΫ w ˒λεΫ͕Ωϡʔʹ௥Ճ͞ΕΔ w

    ˒ΫϦοΫ࣌ͷॲཧ͕࣮ߦ͞Ε8PSLFSʹλεΫ௥Ճ w ˒8PSLFSͰλεΫ͕࣮ߦ͞ΕΔ w ˗ਖ਼ৗύλʔϯͷϘλϯΛΫϦοΫ w ˗λεΫ͕Ωϡʔʹ௥Ճ͞ΕΔ w ˗ΫϦοΫ࣌ͷॲཧ͕࣮ߦ͞ΕΔ w ˗എܠ৭͕ը໘ʹ൓ө͞ΕΔ w ˒എܠ৭͕ը໘ʹ൓ө͞ΕΔ   αϦЀϕϸЄϤ αϦЀϕϸЄϤ main thread worker thread ॏ͍ॲཧ
  21. P⒎UIFNBJOUISFBEύλʔϯ w ॲཧͷྲྀΕ w +4ಡΈࠐΈ࣌ʹ8PSLFS͕ੜ੒͞ΕΔ w ˒P⒎UIFNBJOUISFBEύλʔϯͷϘλϯΛΫϦοΫ w ˒λεΫ͕Ωϡʔʹ௥Ճ͞ΕΔ w

    ˒ΫϦοΫ࣌ͷॲཧ͕࣮ߦ͞Ε8PSLFSʹλεΫ௥Ճ w ˒8PSLFSͰλεΫ͕࣮ߦ͞ΕΔ w ˗ਖ਼ৗύλʔϯͷϘλϯΛΫϦοΫ w ˗λεΫ͕Ωϡʔʹ௥Ճ͞ΕΔ w ˗ΫϦοΫ࣌ͷॲཧ͕࣮ߦ͞ΕΔ w ˗എܠ৭͕ը໘ʹ൓ө͞ΕΔ w ˒എܠ৭͕ը໘ʹ൓ө͞ΕΔ   αϦЀϕϸЄϤ αϦЀϕϸЄϤ main thread worker thread ॏ͍ॲཧ࣮ߦத όφμ咲ኞ
  22. P⒎UIFNBJOUISFBEύλʔϯ w ॲཧͷྲྀΕ w +4ಡΈࠐΈ࣌ʹ8PSLFS͕ੜ੒͞ΕΔ w ˒P⒎UIFNBJOUISFBEύλʔϯͷϘλϯΛΫϦοΫ w ˒λεΫ͕Ωϡʔʹ௥Ճ͞ΕΔ w

    ˒ΫϦοΫ࣌ͷॲཧ͕࣮ߦ͞Ε8PSLFSʹλεΫ௥Ճ w ˒8PSLFSͰλεΫ͕࣮ߦ͞ΕΔ w ˗ਖ਼ৗύλʔϯͷϘλϯΛΫϦοΫ w ˗λεΫ͕Ωϡʔʹ௥Ճ͞ΕΔ w ˗ΫϦοΫ࣌ͷॲཧ͕࣮ߦ͞ΕΔ w ˗എܠ৭͕ը໘ʹ൓ө͞ΕΔ w ˒എܠ৭͕ը໘ʹ൓ө͞ΕΔ   αϦЀϕϸЄϤ αϦЀϕϸЄϤ main thread worker thread ॏ͍ॲཧ࣮ߦத κϲЄ΁فΡ
  23. P⒎UIFNBJOUISFBEύλʔϯ w ॲཧͷྲྀΕ w +4ಡΈࠐΈ࣌ʹ8PSLFS͕ੜ੒͞ΕΔ w ˒P⒎UIFNBJOUISFBEύλʔϯͷϘλϯΛΫϦοΫ w ˒λεΫ͕Ωϡʔʹ௥Ճ͞ΕΔ w

    ˒ΫϦοΫ࣌ͷॲཧ͕࣮ߦ͞Ε8PSLFSʹλεΫ௥Ճ w ˒8PSLFSͰλεΫ͕࣮ߦ͞ΕΔ w ˗ਖ਼ৗύλʔϯͷϘλϯΛΫϦοΫ w ˗λεΫ͕Ωϡʔʹ௥Ճ͞ΕΔ w ˗ΫϦοΫ࣌ͷॲཧ͕࣮ߦ͞ΕΔ w ˗എܠ৭͕ը໘ʹ൓ө͞ΕΔ w ˒എܠ৭͕ը໘ʹ൓ө͞ΕΔ   αϦЀϕϸЄϤ αϦЀϕϸЄϤ main thread worker thread ॏ͍ॲཧ࣮ߦத 㳌ቘΨ䋚ᤈ
  24. P⒎UIFNBJOUISFBEύλʔϯ w ॲཧͷྲྀΕ w +4ಡΈࠐΈ࣌ʹ8PSLFS͕ੜ੒͞ΕΔ w ˒P⒎UIFNBJOUISFBEύλʔϯͷϘλϯΛΫϦοΫ w ˒λεΫ͕Ωϡʔʹ௥Ճ͞ΕΔ w

    ˒ΫϦοΫ࣌ͷॲཧ͕࣮ߦ͞Ε8PSLFSʹλεΫ௥Ճ w ˒8PSLFSͰλεΫ͕࣮ߦ͞ΕΔ w ˗ਖ਼ৗύλʔϯͷϘλϯΛΫϦοΫ w ˗λεΫ͕Ωϡʔʹ௥Ճ͞ΕΔ w ˗ΫϦοΫ࣌ͷॲཧ͕࣮ߦ͞ΕΔ w ˗എܠ৭͕ը໘ʹ൓ө͞ΕΔ w ˒എܠ৭͕ը໘ʹ൓ө͞ΕΔ   αϦЀϕϸЄϤ αϦЀϕϸЄϤ main thread worker thread ॏ͍ॲཧ࣮ߦத 㳌ቘ奾ຎ͢ኮᶎ΁ݍฉ
  25. P⒎UIFNBJOUISFBEύλʔϯ w ॲཧͷྲྀΕ w +4ಡΈࠐΈ࣌ʹ8PSLFS͕ੜ੒͞ΕΔ w ˒P⒎UIFNBJOUISFBEύλʔϯͷϘλϯΛΫϦοΫ w ˒λεΫ͕Ωϡʔʹ௥Ճ͞ΕΔ w

    ˒ΫϦοΫ࣌ͷॲཧ͕࣮ߦ͞Ε8PSLFSʹλεΫ௥Ճ w ˒8PSLFSͰλεΫ͕࣮ߦ͞ΕΔ w ˗ਖ਼ৗύλʔϯͷϘλϯΛΫϦοΫ w ˗λεΫ͕Ωϡʔʹ௥Ճ͞ΕΔ w ˗ΫϦοΫ࣌ͷॲཧ͕࣮ߦ͞ΕΔ w ˗എܠ৭͕ը໘ʹ൓ө͞ΕΔ w ˒എܠ৭͕ը໘ʹ൓ө͞ΕΔ   αϦЀϕϸЄϤ αϦЀϕϸЄϤ main thread worker thread 㳌ቘ奾ຎΨmain thread΁᭗Ꭳ
  26. P⒎UIFNBJOUISFBEύλʔϯ w ॲཧͷྲྀΕ w +4ಡΈࠐΈ࣌ʹ8PSLFS͕ੜ੒͞ΕΔ w ˒P⒎UIFNBJOUISFBEύλʔϯͷϘλϯΛΫϦοΫ w ˒λεΫ͕Ωϡʔʹ௥Ճ͞ΕΔ w

    ˒ΫϦοΫ࣌ͷॲཧ͕࣮ߦ͞Ε8PSLFSʹλεΫ௥Ճ w ˒8PSLFSͰλεΫ͕࣮ߦ͞ΕΔ w ˗ਖ਼ৗύλʔϯͷϘλϯΛΫϦοΫ w ˗λεΫ͕Ωϡʔʹ௥Ճ͞ΕΔ w ˗ΫϦοΫ࣌ͷॲཧ͕࣮ߦ͞ΕΔ w ˗എܠ৭͕ը໘ʹ൓ө͞ΕΔ w ˒എܠ৭͕ը໘ʹ൓ө͞ΕΔ   αϦЀϕϸЄϤ αϦЀϕϸЄϤ main thread worker thread 㳌ቘ奾ຎΨmain thread΁᭗Ꭳ όφμ咲ኞ
  27. P⒎UIFNBJOUISFBEύλʔϯ w ॲཧͷྲྀΕ w +4ಡΈࠐΈ࣌ʹ8PSLFS͕ੜ੒͞ΕΔ w ˒P⒎UIFNBJOUISFBEύλʔϯͷϘλϯΛΫϦοΫ w ˒λεΫ͕Ωϡʔʹ௥Ճ͞ΕΔ w

    ˒ΫϦοΫ࣌ͷॲཧ͕࣮ߦ͞Ε8PSLFSʹλεΫ௥Ճ w ˒8PSLFSͰλεΫ͕࣮ߦ͞ΕΔ w ˗ਖ਼ৗύλʔϯͷϘλϯΛΫϦοΫ w ˗λεΫ͕Ωϡʔʹ௥Ճ͞ΕΔ w ˗ΫϦοΫ࣌ͷॲཧ͕࣮ߦ͞ΕΔ w ˗എܠ৭͕ը໘ʹ൓ө͞ΕΔ w ˒എܠ৭͕ը໘ʹ൓ө͞ΕΔ   αϦЀϕϸЄϤ αϦЀϕϸЄϤ main thread worker thread κϲЄ΁فΡ
  28. P⒎UIFNBJOUISFBEύλʔϯ w ॲཧͷྲྀΕ w +4ಡΈࠐΈ࣌ʹ8PSLFS͕ੜ੒͞ΕΔ w ˒P⒎UIFNBJOUISFBEύλʔϯͷϘλϯΛΫϦοΫ w ˒λεΫ͕Ωϡʔʹ௥Ճ͞ΕΔ w

    ˒ΫϦοΫ࣌ͷॲཧ͕࣮ߦ͞Ε8PSLFSʹλεΫ௥Ճ w ˒8PSLFSͰλεΫ͕࣮ߦ͞ΕΔ w ˗ਖ਼ৗύλʔϯͷϘλϯΛΫϦοΫ w ˗λεΫ͕Ωϡʔʹ௥Ճ͞ΕΔ w ˗ΫϦοΫ࣌ͷॲཧ͕࣮ߦ͞ΕΔ w ˗എܠ৭͕ը໘ʹ൓ө͞ΕΔ w ˒എܠ৭͕ը໘ʹ൓ө͞ΕΔ   αϦЀϕϸЄϤ αϦЀϕϸЄϤ main thread worker thread ᙧวᜋΨኮᶎ΁ݍฉ