KSE, libpthread & libthr: almost newbie question

Julian Elischer julian at elischer.org
Fri Oct 27 22:34:21 UTC 2006


Lev Serebryakov wrote:
> Hello Julian,
> 
> Friday, October 27, 2006, 11:39:29 PM, you wrote:
> 
> JE> As I mentioned in another email, most of the complexity does not come 
> JE> from the  M:N code, but rather from the attempt to provide process 
> JE> fairness.
>   What is Process fairness? Situation, when process with 10 threads consumes same amount of CPU resource, as process with 1 thread (if they are equal in IO, sleeping, etc)?
> 
> 

basically, if you and I both write programs to do a particular job
on a timesharing system, and you use threads to do so and I use
a sophisticated event handler/state machine, I shouldn't find that
my program is running like a pig because yours has 1000 slots in the
run queue and I only get run 1 in 1001 ticks.


More information about the freebsd-current mailing list