compute the run time and sleep time of a process in kernel 2.4
hi there i'm working on a project about implementing a new scheduler into kernel 2.4 version. i figured out the concepts of how it works. However, i struggle with compute the exact run time (which determines the time process is on the CPU) and sleep time (the time process is waiting for the CPU).by the way, i figured out i could use getnstimeofday() - sleep_time(which is in task_struct) which gives the waiting time of a process (which is mainly what i want). i will be glad for every reply and thanks anyway.
|