answersLogoWhite

0

When you have only one processor and run a java program that does everything in memory eg., loops , calculations without looking up external datasources like Database, Socket, MQ , Web Service there wont be any performance benefit out of multithreading.

But when you have multiple processors on the host and you are doing to a large algorithm completely in memory it will definitely help to split your process into threads so different threads can be handled by different processorts

Event if you have on processor and if your java class (or program) does in memory calculations, algorithms + some external lookup like JDBC calls multithreading can greatly help the performance of your process. Your CPU would be free to do other tasks when your code waits for the database to return results.

User Avatar

Wiki User

17y ago

What else can I help you with?

Related Questions

Does java support multithreading or not justify your answer?

yes!


Is java high performance?

The performance of any program depends to a great degree on the skill of the programmer.


Why is single thread system not used in java?

Because the developers of Java considered the possibility of multithreading a big advantage. You don't HAVE TO use multiple threads; just use it when you need it.Because the developers of Java considered the possibility of multithreading a big advantage. You don't HAVE TO use multiple threads; just use it when you need it.Because the developers of Java considered the possibility of multithreading a big advantage. You don't HAVE TO use multiple threads; just use it when you need it.Because the developers of Java considered the possibility of multithreading a big advantage. You don't HAVE TO use multiple threads; just use it when you need it.


How to improve memory issues and performance of java application?

What are the memory issues you are having? Where is the performance problem? Describe your problem!


What are multithreading concepts in java?

Multithreading in Java is the concept by which you can have multiple threads of execution running in parallel. Unfortunately the topic is too big to be summarized in one answers. You can check the related links section for links that can help you understanding this complex topic


What do you mean by multithread program in java?

A Program in Java that spawns multiple threads is called a multithreaded program in Java.


Why does one have to install Java so frequently?

There are too many updates when you install Java on your computer. The reason one has to install Java so frequently is because the updates are mainly used to improve the device stability and performance.


What is concurrent programming in java?

If more than one program is run at the same time then it is called as concurrent programming. This technique is used in multithreading concept where one program is split into several threads and run and the results are grouped to form the original result. Multitasking is also used where more than one program is run at the same time.


What is java program on computers?

#!/usr/bin/perl print 'java program';


What is java virtucal mechine?

That refers to the program that runs the compiled Java program.


What powder game doesnt need java?

Any program written for the Java technology needs Java. Any program NOT written for Java DOESN'T need it.


Can you run a java programme in core i3 processor?

Yes, you can run a Java program on a Core i3 processor. Java is designed to be platform-independent and can run on any system that has a compatible Java Runtime Environment (JRE) installed, including those with Core i3 processors. The performance of the program will depend on the complexity of the code and the available system resources, but a Core i3 is generally sufficient for running most Java applications.