Thread

Class Thread

All Implemented Interfaces:
Runnable
Direct Known Subclasses:
ForkJoinWorkerThread
public class Thread
extends Object
implements Runnable

A thread is a thread of execution in a program. The Java Virtual Machine allows an application to have multiple threads of execution running concurrently.

Every thread has a priority. Threads with higher priority are executed in preference to threads with lower priority. Each thread may or may not also be marked as a daemon. When code running in some thread creates a new Thread登录查看完整内容