answersLogoWhite

0

What is multithreading in java?

Updated: 8/16/2019
User Avatar

Wiki User

13y ago

Best Answer

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. This is Multi-threading

Multi-threading in Java is implemented using Threads

User Avatar

Wiki User

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

Wiki User

12y ago

Multithreading in Java is when there are multiple threads of execution happening/running in parallel.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is multithreading in java?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Does java support multithreading or not justify your answer?

yes!


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.


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


Why java is multi threated?

Why shouldn't it? Multithreading is an advantage, because it lets you make full use of a computer with multiple processors. Mind you, you don't HAVE TO use it - you can perfectly well write programs without multithreading. But in actual practice, many situations arise where you want the computer to do several things at once. Even with a single processor, multithreading offers a convenient way to share the computer time between different tasks.


What is the difference between hyperthreading and simultaneous multithreading?

Actually, hyperthreading is Intel's name for its implementation of simultaneous multithreading.


What are multithreading models?

check


How old is simultaneous multithreading?

Simultaneous multithreading was first researched in 1968 as part of IBM's ACS-360 project.


What is volatile and why are using in java?

volatile variable is mainly used in multithreading environment. so let me explain it from that context.In a multithreading environment,for a variable which is not marked as volatile will be stored in local cache memory for each thread. Meaning each thread will have a local copy of the variable and they dont know about what value this variable is having in another thread. If a variable is marked volatile, then the updations to this variable will happen in the main memory and not in local cache


Is unix is multitasking or multithreading?

It uses both techniques.


How many types of methods are there for run multithreading?

8


How doese improvethe perfomeance of the java about multythreadinng?

Multithreading allows you to use the extra power of multi-cored processors. It also allows multiple parts of your code to be executes at once. This means that slow executing code will not hold up the other lines of code following it.


What is multithreading in C language?

Multi-threading is not part of the language.