即時軟體設計 (Real-Time Software Design) o 設計嵌入式軟體系統,其行為是受時間限 制(timing constraints)
Java當作即時系統的語言 o Java支援輕量型並行執行(lightweight concurrency) (緒及同步化方法(thread and synchronized methods)),它們可以用在一些軟 式即時系統(soft real-time system)
中斷服務 (Interrupt Servicing) o 控制權自動轉移到一個事先決定好的記憶體位置 (a pre-determined memory location) o 這個位置包含一個跳到中斷服務程序(interrupt service routine)的指令(instruction) o 其它的中斷(further interrupt)會被終止(disabled), 中斷服務和控制權回會到中斷行程序(the interrupt serviced and control returned to the interrupted process) o 中斷服務程序(interrupt service routine)必須簡短、 簡單和快速(short, simple and fast)
o 排程演算法(scheduling algorithm) n 循環式排程(round-robin) n 單調速率排程(rate monotonic) n 最短截止時限優先排程(shortest deadline first)
時間需求 (Timing Requirements)
Process architecture
Building_monitor process 1
Building_monitor process 2
反應器流量監控 (Reactor Flux Monitoring)
環狀暫存器 (A Ring Buffer)
Java implementation of a ring buffer 1
Java implementation of a ring buffer 2
參考資料 o Ian Sommerville, Software Engineering, 7 th ed. , Addison-Wesley,2004.