Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 12-18-2012, 01:18 PM   #1
LQ Newbie
Registered: Apr 2011
Posts: 9

Rep: Reputation: 0
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.


kernel, scheduler

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Checking os and process state at run time. sanjeebkdeka Programming 4 05-11-2010 03:32 AM
how do i get the values for the user time and system time for a process. aloktiagi Linux - Newbie 3 08-04-2009 06:55 PM
sleep time = sys time for pread? wqhhust Linux - Kernel 0 01-20-2009 09:08 PM
compute execution time raedbenz Linux - Software 2 07-15-2008 12:26 PM
how get a process run time henryluo Linux - Newbie 9 06-10-2004 10:45 PM > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 03:16 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration