answersLogoWhite

0

In a single-threaded runtime environment, actions execute one after another. The next action can happen only when the previous one is finished. If task A takes half an hour, and the user wants to do something else, he is doomed to wait until task A is over.

Ideally, the user should be able to carry on with his other task until his first task is complete. Imagine having to wait till your eclipse build all your source code before you could check your email? Thankfully windows uses multiple threads to run your eclipse and outlook. So you don't have to go through this pain. Similarly java has options wherein the programmer can have multiple threads of execution running.

Using the Thread concept in Java to create a program that runs multiple tasks in parallel is called multithreading

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

What mean by multithreaded program?

A multithreaded program is one that has multiple threads in execution. They may execute parallel to one another or totally without relation to one another. In Java you can create multithreaded programs using Java threads.


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 java called as multithreaded programming?

Java is called multithreaded because it allows the programmer to define multiple threads of execution manually. The main program would continue to execute as one thread and we can speed up the processing by declaring individual threads. Threads in Java can be created in two ways: 1. By extending the Thread class & 2. By implementing the Runnable interface


What is buzz word in java define?

the Java 'white paper" buzzwords: simple object oriented network savvy robust secure architecture neutral portable interpreted hight performance multithreaded dynamic


What are the advantages of different java datatypes?

The Basic data types in Java arebyteint (Integer)longdoublefloatcharshortThe String type is an object.StringTo learn more about Java go to:[http://java.sun.com/docs/books/tutorial/java/index.html]


Explain the role of sizeof operator in java?

There is no sizeOf() operator in Java.


What is a simple java code and explain what the code does?

int a;This simple Java statement declares an integer.


Explain how objects are created in Java?

with new operator


Explain why Java programs running on Android systems do not use the standard Java API and virtual machine?

123


How an exception subclass is created in java explain?

We can create a exception sub class by extending Exception class available in java


Hi friends i am new to java can you explain how java is secured?

java is an object oriented programme it is similar to c++ so if you know very well in c++ you can easily figure it out.


What is JButton in java and explain it?

A JButton on Java is a button used for G.U.I (graphical user interface) and displays a button on a window created which can be programmed for different tasks.