LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 12-18-2012, 01:18 PM   #1
quartaela
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.
 
  


Reply

Tags
kernel, scheduler



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 01:08 PM.

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