0

Say about java thread

what is java thread

17th May 2018, 6:13 PM
Program Rintu
Program Rintu - avatar
5 Antworten
+ 6
A thread, in the context of Java, is the path followed when executing a program. All Java programs have at least one thread, known as the main thread, which is created by the Java Virtual Machine (JVM) at the program's start, when the main() method is invoked with the main thread. https://www.techopedia.com/definition/24350/thread-java
17th May 2018, 6:15 PM
Scooby
Scooby - avatar
+ 2
Allows multiple processes to exist within Java's process. This is good when you need your program to perform multiple things at the same time without impacting each other. For example, I could have a thread dealing with updates/downloads/etc... while another thread is handling the parts of the program that you're using in that moment. There is so many useful applications of threading. Basically, if your program needs to be performing multiple tasks at the exact same time, then use threading.
17th May 2018, 6:15 PM
Fata1 Err0r
Fata1 Err0r - avatar
+ 1
https://www.geeksforgeeks.org/multithreading-in-java/ Multithreading in Java Multithreading is a Java feature that allows concurrent execution of two or more parts of a program for maximum utilization of CPU. Each part of such program is called a thread. So, threads are light-weight processes within a process.
17th May 2018, 6:16 PM
Fata1 Err0r
Fata1 Err0r - avatar
0
thanks for help mee
17th May 2018, 6:27 PM
Program Rintu
Program Rintu - avatar
0
ok
5th Jun 2018, 3:09 AM
[No Name]
[No Name] - avatar