Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.arcetri.astro.it/irlab/doc/library/linux/khg/HyperNews/get/khg/174.html
Дата изменения: Thu Mar 23 12:37:47 2000 Дата индексирования: Wed Sep 15 00:50:29 2010 Кодировка: Поисковые слова: m 63 |
Hi, I am implementing a different scheduling policy in the scheduler of Linux 2.0.0. I need to measure the time taken for choosing the next task to be scheduled, i.e., the actual time spent in the schedule() function, without the actual context switch having taken place. Since I clear interrupts in schedule(), how do I measure the time? Does 'jiffies' still contain the actual time? Or is the time asynchronously updated in some other variable while the timer interrupt is disabled? Thanks, Jasleen Kaur |