Two observations of mine (correct me if wrong):
In the output of
timefor timing a process,
'User' and 'Sys' come from wait (2) or times (2), depending on the particular system.
In Linux kernel, both the process states "running" and "ready" (i.e. runnable and waiting in run queue) are represented by
What process state(s) counts into the cpu time of a process:
- both "running" and "ready", i.e.
My pick is "running". But if that is true, since
TASK_RUNNING in Linux kernel doesn't distinguish between "running" and "ready", how can
time report the cpu time?