On Wed, Feb 27, 2002 at 11:55:18AM +0100, Niklas Mehner wrote: > Hi ! > > I tried to figure out system load with this piece of code:
Pretty nifty. > And it seems to do a pretty good job on my VM (Sun 1.4/Linux), which > doesn't necessairily mean it will give > good results in other environments (windows/kaffe etc.). It sort of works here (kaffe). Each thread in an infinite loop seems to add exactly 1 second to the time, while threads that are sleeping add nothing. I don't know about threads waiting in native code (socketread) and alike. -- Oskar Sandberg oskar at freenetproject.org _______________________________________________ Devl mailing list Devl at freenetproject.org http://lists.freenetproject.org/mailman/listinfo/devl
