Two observations of mine (correct me if wrong):In the output of time for 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 TASK_RUNNING.What process state(s) counts into the cpu time of a process:runningreadyboth running and ready, i.e. TASK_RUNNING ?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?
What process state(s) is counted into cpu time?
linux;bash;process;linux kernel;time