Monday, March 13, 2006 03:51 PM
Java threads map to O/S threads (on most systems.) The O/S selects a cpu for each thread of execution. Therefore, by placing code in separate threads you increase the chance of multi-processing.
The key word is "chance".
What thread runs on any cpu at anytime is nearly impossible to predict. You could end up with so many threads that your code starves. On the other hand, with the proper number of threads, you could have a truly multi-processing application.
How to get from starve to super has driven people crazy (me too) for decades.