Public void start (): start, but not necessarily run immediately
Public static thread currentthread (): returns a reference to the object of the currently executing thread.
Public classloader get contextclassloader (): returns the context classloader of the thread. The context classloader is provided by the thread Creator for the code running on the thread to use when loading classes and resources.
Public final Boolean isalive ()
Public thread. State getstate ()
Public final string getname ()
Public final void setname (string name); set the thread name
Public final void setdaemon (Boolean on); Mark this thread as a daemon or user thread
Public final void setpriority (INT newpriority); change the thread priority
Public static void sleep (long Mills) throws interruptedexception; sleep the currently running thread (pause execution) within a specified number of milliseconds)
Public void interrupt (); interrupt thread
* *** The following code is usually used to obtain the absolute path of the current classpath.
// Obtain the URL representation of the absolute path of the current classpath using method chain call
URL url = thread. currentthread (). getcontextclassloader (). getresource ("");