answersLogoWhite

0


Best Answer

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.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

14y ago

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.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why is single thread system not used in java?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the use of thread in java?

Thread is a single sequential flow of control within program. Each flow of control may be thought of as a seperate lines of code(module) is called as thread.Actually thread is a predefined class in java. threads are used to handle Exceptions in java.


What is JFM in Java and what is the use of it?

jFM is a java file manager. It is used to access the file system.


What is notify function in java?

The notify() method is used in Thread Communication between two threads along with the wait() method


Which is the operating system used in the sonyericsson c902?

Java OS


Another name of single strand wire?

Another name that can be used for a single-strand wire is thread or strand.


What is meant by a thread in java programming language?

A thread and a process are same but a minor difference is there. Process executes a program completely without splitting whereas a thread splits a program into smaller tasks and then execute them separately.And then combine the final result. that is why a process is often called as Heavy weight and a thread is called as light weight.


Why thread used in java?

Threads are used in Java to run multiple operations in parallel. You can create and run multiple threads in parallel to utilize the processing power of the computer and reduce waiting time which would be high if processes are executed in sequence


What is deadlock in java?

A deadlock is a situation that comes up when multiple threads are being used in a single java program. During thread execution, threads can access any number of methods they want. To ensure that data is consistent during execution, the methods have a property called "synchronized" which prevents multiple threads from accessing a single method. So under this scenario lets take a look at this example: Thread A is currently holding a lock on Method A and needs to execute method B in order to complete. Thread B is currently holding a lock on Method B and needs to execute method A in order to complete. The above is a classic example of deadlock.


What is the correct use of volatile in java?

It is used to alert the compiler that the value of a variable may be modified by more than one thread. As a result, the Java Virtual Machine is not allowed to do certain optimizations, which are problematic in such cases.


Why do you use synchronized block in java?

A Synchronized block is a block of code enclosed by the {} braces that has a synchronized keyword before it. This block of code is similar to a synchronized method and only one thread can access it at a time.


Need of interface in java?

Interfaces are used in Java to accomplish most of the goals of Multiple Inheritance. For several reasons, Java only supports Single Inheritance for classes - i.e. a class can have only a single parent. The use of Interfaces is how Java attempts to implement most of the positives of the concept of Multiple Inheritance while avoiding its pitfalls.


Why do you need runnable interface?

A Runnable Interface is one that is used to create a Java Thread... A Thread can be created in two ways and using the Runnable Interface is one of them. Example: public class Test implements Runnable { public void run(){ .... } } The Runnable interface would have an abstract instance of the method run() which needs to be implemented in the class which wants to create a Thread.