20.20
java.lang.Thread
THE PACKAGE JAVA.LANG
20.20.11
public String toString()
The returned value is a concatenation of the following seven strings:
"Thread["
The current name of the thread ( 20.20.19)
","
The current priority of the thread ( 20.20.22), as a decimal numeral
","
The name ( 20.21.5) of the thread group ( 20.20.21) that contains this thread
"]"
All literal characters mentioned above are from the ACSII subset of Unicode.
Overrides the
toString
method of
Object
( 20.1.3).
20.20.12
public void checkAccess() throws SecurityException
If there is a security manager, its
checkAccess
method ( 20.17.11) is called with
this
Thread
object as its argument. This may result in a
SecurityException
being thrown in the current thread,.
This method is called by methods
stop
of no arguments ( 20.20.15),
stop
of
one argument ( 20.20.16),
suspend
( 20.20.17),
resume
( 20.20.18),
setName
( 20.20.20),
setPriority
( 20.20.23), and
setDaemon
( 20.20.25).
20.20.13
public void run()
The general contract of this method is that it should perform the intended action of
the thread.
The
run
method of class
Thread
simply calls the
run
method of the separate
run object, if there is one; otherwise, it does nothing.
20.20.14
public void start()
throws IllegalThreadStateException
Invoking this method causes this thread to begin execution; this thread calls the
run
method of this
Thread
object. The result is that two threads are running con
currently: the current thread (which returns from the call to the
start
method)
and the thread represented by this
Thread
object (which executes its
run
method).
594
footer
Our partners:
PHP: Hypertext Preprocessor Best Web Hosting
Java Web Hosting
Inexpensive Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Jsp Hosting
Cheap Hosting
Visionwebhosting.net Business web hosting division of Web
Design Plus. All rights reserved