How can I get the value of process's timeslice in user mode? I designed a new scheduling policy, and I want to check if processes with the same policy (my policy) have the same timeslice to run. It is not a real-time process.
Asked
Active
Viewed 167 times
1
-
possible duplicate of [How to know linux scheduler time slice?](http://stackoverflow.com/questions/16401294/how-to-know-linux-scheduler-time-slice) – mvp Aug 19 '13 at 05:14
1 Answers
1
You can see this in
/proc/<pid>/stat
14th and 15th fields represent the utime and stime respectively. utime is time spent in user mode while stime represents time spent by process in kernel mode.

Gyan Gupta
- 986
- 8
- 15