Re: linux

2003-02-07 Thread Matt Avery
Some of the best thread programming advice I've ever read was to never use Thread.yield() or mess with thread priorities or ThreadGroups in Java. In my opinion, it's a mistake in the Java API that we even have the *idea* of Thread.yield() and priorities for the very reason that we *like* to pr

Re: linux

2003-02-07 Thread jks
On Thu, 6 Feb 2003, Hui Huang wrote: > > They don't really want to be kicked out of CPU. But you have to > have those yield()'s inserted into a program because otherwise I think we've lost a little context here. This started out when I said that instead of not doing anything Thread.yield() cou

Re: How to Make JVM work faster

2003-02-07 Thread Hari
> We are in a process of making a routing selector , am just curious what > advantage the JAVA can have over C++ ( apart from multiplatform) in > processing the request faster...??? > > Is there any article that i can read to understand how to make the process > fast or how we can tweak around wi

Re: linux

2003-02-07 Thread Alexander V. Konstantinou
I had to admit that I fired off my earlier e-mail with potentially dated information (its been a couple of years since I last tested thread behavior). So I decided to run a small experiment. I created a simple test class called ThreadTest: two threads racing each other in a counting loop. The firs