c - what is the average time, that an average process, running on an average kernel, using an average scheduler, gets in one active cycle? -


i've got here , there chunks of information no real, complete example of real case, real time approximation(real in human world;ex:10^-7 sec/10^-5 sec or order of magnitude).

to give hints want know, i'll try example , wait put on right track:

3.2 , version of linux kernel(you may need evaluate scheduler)

~i5/i7 generation hardware(you may need approximate main system clock)

take let's 2 cases of "equal priority" number of processes 10^2 , 10^4(i know lot of may go berzerk on me 10^4, let's take exercise)

if question thread's time "of action", how translate? have decent number of threads spread evenly between processes 10^2 processes each having ~10-100 threads vs 1 busy process has lots of threads ~10^4.

i assume answer has lots of detailed tricky parts , things maybe missing question assume common/average case if so,

thank you.

linux uses 100 milliseconds scheduler quantum, if that's asking, in own, convoluted way :-)

there's nothing saying process has use entire quantum and, in fact, if release early, think priority gets bumped bit reward.


Comments