Linux kernel could be more complicated when evaluating priorities and defining "runnable" processes. While "nice" values only impact the base/static priorities of the process, these may not be the actual priorities, "dynamic priorities" as defined and used by scheduler. Further the class of scheduling policy of the processes viz with RT or "default Timesharing" also defines CPU consumption.
In short the formula 1/(n+1) may not define exact CPU usage for n+1 processes, though runnable/blocked concepts of processes very much apply. Best Regards, Arun Kumar Singh www.crazydaks.com On Wed, Dec 8, 2010 at 6:29 AM, Brad Davis <bda...@cove-mtn.com> wrote: > Yes and no. If all the processes were active and runnable (not > blocked waiting for something else to happen) then yes, you would be > sharing the CPU with all of them. However, most of them are blocked > for one reason or another (disk read, message, signal, UI interaction, > another process, ...). > > On Dec 6, 8:58 pm, Yu <ywu...@gmail.com> wrote: > > Hi, > > > > If you use 'ps' command, you will get a list of all the current > > processes in the system - let us assume that we have n processes. My > > question is if a new application is lauched - say Process-A, will A > > share the CPU with all the exisiting processes in the system? So the > > fraction of CPU for A is about 1/(n+1) - assuming they are of same > > nice value ? > > > > Thanks a lot. > > -- > unsubscribe: > android-kernel+unsubscr...@googlegroups.com<android-kernel%2bunsubscr...@googlegroups.com> > website: http://groups.google.com/group/android-kernel > -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel