一、RTOS 介紹
即時系統是一個有時間限制的系統,具有明確定義的固定時間限制。處理必須在定義的約束內完成,否則系統將失敗。
可以將 RTOS 分為以下兩種:
Hard RTOS: 將任何錯過最後期限的行為視為系統故障。廣泛用於任務關鍵型系統。
Soft RTOS: 允許經常錯過最後期限,只要任務及時執行,其結果就繼續有價值。已完成的任務在截止日期之前的價值可能會增加,而在截止日期之後價值可能會減少。
:::info
注意到 Real time != Real fast
Jim Huang changed 15 days agoView mode Like Bookmark
「指標」扮演「記憶體」和「物件」之間的橋樑
C 語言規格
Object
首先可以先探討 C 語言中的 object。講到 object 大家一定會想到物件導向,但其實在 C 語言規格書中有個專業術語就叫 『object』。
object 定義: 在執行時期,資料儲存的區域,可以明確表示數值的內容
region of data storage in the execution environment, the contents of which can represent values
Appmedia changed a month agoEdit mode Like Bookmark
contributed by < Appmedia06 >
開發環境
$ gcc --version
gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ lscpu
Appmedia changed 10 months agoView mode Like Bookmark
contributed by < Appmedia06 >
開發環境
$ gcc --version
gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ lscpu
Appmedia changed 10 months agoView mode Like Bookmark