effective_prio()函數返回進程p的動態優先順序static int effective_prio(task_t *p){ int bonus, prio;如果進程p是個即時進程,那麼直接返回該即時進程的prio(即時進程的動態優先順序prio不依賴於靜態優先順序static_prio,兩者是否相等???)|----------------------------|| if (rt_task(p)) || return p->prio;
schedule()片段進程next被喚醒後(喚醒前處於TASK_INTERRUPTIBLE狀態),現在已經被schedule()選中即將投入運行,在得到CPU控制權之前需要重新計算其sleep_avg和prio: if (!rt_task(next) && next->activated > 0) ...{ unsigned long long delta = now - next->timestamp; //(1)
從entry所在的雙向鏈表中將entry刪除:static inline void list_del(struct list_head *entry)...{ __list_del(entry->prev, entry->next); entry->next = LIST_POISON1; entry->prev = LIST_POISON2;}/**//* * These are non-NULL pointers that will result i
更新喚醒進程p的平均睡眠時間sleep_avg和動態優先順序prio;記錄該進程喚醒前的睡眠狀態;將該進程插入活躍優先順序數組static void activate_task(task_t *p, runqueue_t *rq, int local){ unsigned long long now; now = sched_clock();如果目標CPU不是本地CPU,就要補償本地時鐘器中斷的偏差,這是通過計算本地CPU和目標CPU上最近一次發生時鐘中斷的相對時間戳記來達到的|--
文法標註解釋velocity英音:[vi'lɔsiti]美音:[və'lɑsətɪ] 名詞 n. 1.迅速;快速[U]The hare darted off with the velocity of a bird.野兔像鳥一樣快速掠去。2.速度;速率[C]The velocity of light is about 186,000 miles per second.光速大約是每秒十八萬六千英裡。以下結果來自互連網網路釋義velocity1.周轉速度經濟金融術語漢英對照表
related files in kernel:arch/arm/kernel/calls.S 聲明了系統調用函數和sys_call_tableinclude/asm-arm/unistd.h 定義了系統調用的調 用號規則 vector_swi定義在arch/arm/kernel/entry-common.Svector_IRQ定義在 arch/arm/kernel/entry-armv.Svector_FIQ定義在arch/arm/kernel/entry- armv.S========
context_switch( )環境切換:調用switch_mm(),把虛擬記憶體從一個進程映射切換到新進程中調用switch_to(),從上一個進程的處理器狀態切換到新進程的處理器狀態。這包括儲存、恢複棧資訊和寄存器資訊 The context_switch( ) function sets up the address space of next. the active_mm field of the process descriptor points to the memory