answersLogoWhite

0

When to use threads in program?

Updated: 8/17/2019
User Avatar

Wiki User

14y ago

Best Answer

You use threads whenever you want your program to do several things simultaneously.

You use threads whenever you want your program to do several things simultaneously.

You use threads whenever you want your program to do several things simultaneously.

You use threads whenever you want your program to do several things simultaneously.

User Avatar

Wiki User

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

Wiki User

14y ago

You use threads whenever you want your program to do several things simultaneously.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: When to use threads in program?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What do you mean by multithread program in java?

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


What is the purpose of Java sleep?

It pauses the execution of the program (or of the thread where it is invoked, if you have multiple threads), for the specified time.It pauses the execution of the program (or of the thread where it is invoked, if you have multiple threads), for the specified time.It pauses the execution of the program (or of the thread where it is invoked, if you have multiple threads), for the specified time.It pauses the execution of the program (or of the thread where it is invoked, if you have multiple threads), for the specified time.


What is threading in OS?

Threads are the actual path of execution of a program.


What is main thread in java program?

the main thread is the first thread that creates when the JVM starts executing your program. All subsequent threads that you may create in your program would be child threads to the main thread. It is important to note that if the main thread exits, all other threads that were spawned by it will also get killed.


Distinguish the terms Program Process and Threads?

A program is an executable. A process is an executable that has been loaded into working memory and is currently executing the program. A thread is a thread of execution within a process. Every process has at least one thread, but threads can spawn additional threads as required to allow concurrent operations to be performed near-simultaneously.


What is servlet?

server side program or single instance multiple threads.


What is Degree of Multiprogramming?

number of process in system number of threads in a program..


What barrel thread does a proto slg use?

The threads are autococker threads. All proto and dye guns have autococker threads.


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.


In relation to Java what is a thread?

A Java Thread is a thread of execution in a Java Program. A Java Virtual Machine can have a single application running multiple threads, which is known as concurrency. Threads are what make the program run. Each thread has a different priority, and when the machine queue fills up, the threads are executed in the order of their priority.


What is volatile thread?

Threads are not volatile. The volatile is a keyword that is used while having multiple threads in a Java Program. This keyword is used when multiple threads access a particular variable but still it is not mandatory to synchronize or prevent access to that variable.


What is a java threads?

A program can have various threads, which are program parts that run simultaneously. If the computer has a single processor, time will be split among the different threads (perhaps a few milliseconds for one thread or sub-process, a few milliseconds for another, etc.), so that the different threads don't really run simultaneously, but it may seem so. If a computer has multiple processors - quite common with modern processors, such as the Intel I3, I5 or I7 - then the computer will truly run multiple threads at once.