What is threads in Java?
The Java platform is designed from the ground up to support
concurrent programming, threads can share the resource and can run concurrently
Multithreaded execution is an essential feature of the Java
platform. Every application has at least one thread ? or several, if you count
"system" threads that do things like memory management and signal
handling. But from the application programmer's point of view, you start with
just one thread, called the main thread. This thread has the ability to
create additional threads
Different ways to
create thread
Threads
can be created using the following ways
1.
Thread class