Web Title:112 學年度 台南市進學國小資訊組112 學年度 台南市進學國小資訊組

Scratch 訊息廣播接收 (同步與非同步執行) Synchronous vs. Asynchronous Execution

Scratch 訊息廣播接收 (同步與非同步執行)

Synchronous vs. Asynchronous Execution

https://stackoverflow.com/questions/748175/asynchronous-vs-synchronous-execution-what-does-it-really-mean

Scratch 中內建許多像是程序 (procedure)、事件驅動 (event-driven)、並行 (concurrency) 與訊息廣播接收這類的溝通方式 (Synchronous and asynchronous execution) 等,都是程式執行流程的進階控制和策略,使用者卻可輕易的運用於設計中。

以下範例,嘗試以簡化的方式呈現出「同步」與「非同步」執行的概念。

  1. 連續快速按下「空白鍵」,因採用非同步 (async) 方式,箭頭尚為完成移動過程,又回到初始;
  2. 連續快速按下「右鍵」,因採用同步 (sync) 方式,需等待箭頭完成移動過程,才能回到初始。

https://scratch.mit.edu/projects/167210857/

相關連結:https://scratch.mit.edu/projects/167210857/

搜尋

活動剪影秀

  • slider image 1
  • slider image 2
  • slider image 3
  • slider image 4
  • slider image 5
  • slider image 6
  • slider image 7
  • slider image 8
  • slider image 9
  • slider image 10
  • slider image 11
  • slider image 12
  • slider image 13
  • slider image 14

準備全國紫錐花盃反毒機器人競賽