Re: high load & poor interactivity on fast thread creation

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Thu Nov 30 2000 - 11:12:53 EST


> When creating a lot of Java threads per second linux slows down to a
> crawl. I don't think this happens on NT, probably because NT doesn't
> create new threads as fast as Linux does.

Also probably the Java implementation on NT is not creating true threads for
each java thread as the IBM java seems to.

> Is there a way (setting ?) to solve this problem ? Rate-limit the number
> of threads created ? The problem occurred on linux 2.2, IBM Java 1.1.8.

The programming real answer is replace threads with state machines and all
your stuff runs faster. Thats often easy to say and hard to do.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Nov 30 2000 - 21:00:25 EST