OSDN Git Service

lejos_NXJ_win32_0_5_0beta.zip
[nxt-jsp/lejos_nxj.git] / nxtOSEK / lejos_nxj / docs / apidocs / java / lang / Thread.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <!--NewPage-->
3 <HTML>
4 <HEAD>
5 <!-- Generated by javadoc (build 1.5.0_09) on Tue Jan 08 20:46:00 GMT 2008 -->
6 <TITLE>
7 Thread (leJOS NXT API documentation)
8 </TITLE>
9
10 <META NAME="keywords" CONTENT="java.lang.Thread class">
11
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style">
13
14 <SCRIPT type="text/javascript">
15 function windowTitle()
16 {
17     parent.document.title="Thread (leJOS NXT API documentation)";
18 }
19 </SCRIPT>
20 <NOSCRIPT>
21 </NOSCRIPT>
22
23 </HEAD>
24
25 <BODY BGCOLOR="white" onload="windowTitle();">
26
27
28 <!-- ========= START OF TOP NAVBAR ======= -->
29 <A NAME="navbar_top"><!-- --></A>
30 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
31 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
32 <TR>
33 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
34 <A NAME="navbar_top_firstrow"><!-- --></A>
35 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
36   <TR ALIGN="center" VALIGN="top">
37   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
38   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
39   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
40   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
41   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
42   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
43   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
44   </TR>
45 </TABLE>
46 </TD>
47 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
48 </EM>
49 </TD>
50 </TR>
51
52 <TR>
53 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
54 &nbsp;<A HREF="../../java/lang/System.html" title="class in java.lang"><B>PREV CLASS</B></A>&nbsp;
55 &nbsp;<A HREF="../../java/lang/ThreadDeath.html" title="class in java.lang"><B>NEXT CLASS</B></A></FONT></TD>
56 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
57   <A HREF="../../index.html?java/lang/Thread.html" target="_top"><B>FRAMES</B></A>  &nbsp;
58 &nbsp;<A HREF="Thread.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
59 &nbsp;<SCRIPT type="text/javascript">
60   <!--
61   if(window==top) {
62     document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
63   }
64   //-->
65 </SCRIPT>
66 <NOSCRIPT>
67   <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
68 </NOSCRIPT>
69
70
71 </FONT></TD>
72 </TR>
73 <TR>
74 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
75   SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
76 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
77 DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
78 </TR>
79 </TABLE>
80 <A NAME="skip-navbar_top"></A>
81 <!-- ========= END OF TOP NAVBAR ========= -->
82
83 <HR>
84 <!-- ======== START OF CLASS DATA ======== -->
85 <H2>
86 <FONT SIZE="-1">
87 java.lang</FONT>
88 <BR>
89 Class Thread</H2>
90 <PRE>
91 <A HREF="../../java/lang/Object.html" title="class in java.lang">java.lang.Object</A>
92   <IMG SRC="../../resources/inherit.gif" ALT="extended by "><B>java.lang.Thread</B>
93 </PRE>
94 <DL>
95 <DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../lejos/subsumption/ActivityBase.html" title="class in lejos.subsumption">ActivityBase</A>, <A HREF="../../lejos/nxt/comm/LCPBTResponder.html" title="class in lejos.nxt.comm">LCPBTResponder</A></DD>
96 </DL>
97 <HR>
98 <DL>
99 <DT><PRE>public abstract class <B>Thread</B><DT>extends <A HREF="../../java/lang/Object.html" title="class in java.lang">Object</A></DL>
100 </PRE>
101
102 <P>
103 A thread of execution (or task). Now handles priorities, daemon threads
104  and interruptions.
105 <P>
106
107 <P>
108 <HR>
109
110 <P>
111 <!-- =========== FIELD SUMMARY =========== -->
112
113 <A NAME="field_summary"><!-- --></A>
114 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
115 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
116 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
117 <B>Field Summary</B></FONT></TH>
118 </TR>
119 <TR BGCOLOR="white" CLASS="TableRowColor">
120 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
121 <CODE>static&nbsp;int</CODE></FONT></TD>
122 <TD><CODE><B><A HREF="../../java/lang/Thread.html#MAX_PRIORITY">MAX_PRIORITY</A></B></CODE>
123
124 <BR>
125 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The maximum priority that a thread can have.</TD>
126 </TR>
127 <TR BGCOLOR="white" CLASS="TableRowColor">
128 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
129 <CODE>static&nbsp;int</CODE></FONT></TD>
130 <TD><CODE><B><A HREF="../../java/lang/Thread.html#MIN_PRIORITY">MIN_PRIORITY</A></B></CODE>
131
132 <BR>
133 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The minimum priority that a thread can have.</TD>
134 </TR>
135 <TR BGCOLOR="white" CLASS="TableRowColor">
136 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
137 <CODE>static&nbsp;int</CODE></FONT></TD>
138 <TD><CODE><B><A HREF="../../java/lang/Thread.html#NORM_PRIORITY">NORM_PRIORITY</A></B></CODE>
139
140 <BR>
141 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The priority that is assigned to the primordial thread.</TD>
142 </TR>
143 </TABLE>
144 &nbsp;
145 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
146
147 <A NAME="constructor_summary"><!-- --></A>
148 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
149 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
150 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
151 <B>Constructor Summary</B></FONT></TH>
152 </TR>
153 <TR BGCOLOR="white" CLASS="TableRowColor">
154 <TD><CODE><B><A HREF="../../java/lang/Thread.html#Thread()">Thread</A></B>()</CODE>
155
156 <BR>
157 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
158 </TR>
159 <TR BGCOLOR="white" CLASS="TableRowColor">
160 <TD><CODE><B><A HREF="../../java/lang/Thread.html#Thread(java.lang.String)">Thread</A></B>(<A HREF="../../java/lang/String.html" title="class in java.lang">String</A>&nbsp;name)</CODE>
161
162 <BR>
163 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
164 </TR>
165 </TABLE>
166 &nbsp;
167 <!-- ========== METHOD SUMMARY =========== -->
168
169 <A NAME="method_summary"><!-- --></A>
170 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
171 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
172 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
173 <B>Method Summary</B></FONT></TH>
174 </TR>
175 <TR BGCOLOR="white" CLASS="TableRowColor">
176 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
177 <CODE>static&nbsp;<A HREF="../../java/lang/Thread.html" title="class in java.lang">Thread</A></CODE></FONT></TD>
178 <TD><CODE><B><A HREF="../../java/lang/Thread.html#currentThread()">currentThread</A></B>()</CODE>
179
180 <BR>
181 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
182 </TR>
183 <TR BGCOLOR="white" CLASS="TableRowColor">
184 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
185 <CODE>&nbsp;int</CODE></FONT></TD>
186 <TD><CODE><B><A HREF="../../java/lang/Thread.html#getPriority()">getPriority</A></B>()</CODE>
187
188 <BR>
189 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
190 </TR>
191 <TR BGCOLOR="white" CLASS="TableRowColor">
192 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
193 <CODE>&nbsp;void</CODE></FONT></TD>
194 <TD><CODE><B><A HREF="../../java/lang/Thread.html#interrupt()">interrupt</A></B>()</CODE>
195
196 <BR>
197 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the interrupted flag.</TD>
198 </TR>
199 <TR BGCOLOR="white" CLASS="TableRowColor">
200 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
201 <CODE>static&nbsp;boolean</CODE></FONT></TD>
202 <TD><CODE><B><A HREF="../../java/lang/Thread.html#interrupted()">interrupted</A></B>()</CODE>
203
204 <BR>
205 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
206 </TR>
207 <TR BGCOLOR="white" CLASS="TableRowColor">
208 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
209 <CODE>&nbsp;boolean</CODE></FONT></TD>
210 <TD><CODE><B><A HREF="../../java/lang/Thread.html#isAlive()">isAlive</A></B>()</CODE>
211
212 <BR>
213 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
214 </TR>
215 <TR BGCOLOR="white" CLASS="TableRowColor">
216 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
217 <CODE>&nbsp;boolean</CODE></FONT></TD>
218 <TD><CODE><B><A HREF="../../java/lang/Thread.html#isDaemon()">isDaemon</A></B>()</CODE>
219
220 <BR>
221 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the daemon flag.</TD>
222 </TR>
223 <TR BGCOLOR="white" CLASS="TableRowColor">
224 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
225 <CODE>&nbsp;boolean</CODE></FONT></TD>
226 <TD><CODE><B><A HREF="../../java/lang/Thread.html#isInterrupted()">isInterrupted</A></B>()</CODE>
227
228 <BR>
229 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
230 </TR>
231 <TR BGCOLOR="white" CLASS="TableRowColor">
232 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
233 <CODE>&nbsp;void</CODE></FONT></TD>
234 <TD><CODE><B><A HREF="../../java/lang/Thread.html#join()">join</A></B>()</CODE>
235
236 <BR>
237 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Join not yet implemented</TD>
238 </TR>
239 <TR BGCOLOR="white" CLASS="TableRowColor">
240 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
241 <CODE>&nbsp;void</CODE></FONT></TD>
242 <TD><CODE><B><A HREF="../../java/lang/Thread.html#join(long)">join</A></B>(long&nbsp;timeout)</CODE>
243
244 <BR>
245 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
246 </TR>
247 <TR BGCOLOR="white" CLASS="TableRowColor">
248 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
249 <CODE>abstract &nbsp;void</CODE></FONT></TD>
250 <TD><CODE><B><A HREF="../../java/lang/Thread.html#run()">run</A></B>()</CODE>
251
252 <BR>
253 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
254 </TR>
255 <TR BGCOLOR="white" CLASS="TableRowColor">
256 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
257 <CODE>&nbsp;void</CODE></FONT></TD>
258 <TD><CODE><B><A HREF="../../java/lang/Thread.html#setDaemon(boolean)">setDaemon</A></B>(boolean&nbsp;on)</CODE>
259
260 <BR>
261 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
262 </TR>
263 <TR BGCOLOR="white" CLASS="TableRowColor">
264 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
265 <CODE>&nbsp;void</CODE></FONT></TD>
266 <TD><CODE><B><A HREF="../../java/lang/Thread.html#setPriority(int)">setPriority</A></B>(int&nbsp;priority)</CODE>
267
268 <BR>
269 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the priority of this thread.</TD>
270 </TR>
271 <TR BGCOLOR="white" CLASS="TableRowColor">
272 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
273 <CODE>static&nbsp;void</CODE></FONT></TD>
274 <TD><CODE><B><A HREF="../../java/lang/Thread.html#sleep(long)">sleep</A></B>(long&nbsp;aMilliseconds)</CODE>
275
276 <BR>
277 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
278 </TR>
279 <TR BGCOLOR="white" CLASS="TableRowColor">
280 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
281 <CODE>&nbsp;void</CODE></FONT></TD>
282 <TD><CODE><B><A HREF="../../java/lang/Thread.html#start()">start</A></B>()</CODE>
283
284 <BR>
285 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
286 </TR>
287 <TR BGCOLOR="white" CLASS="TableRowColor">
288 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
289 <CODE>static&nbsp;void</CODE></FONT></TD>
290 <TD><CODE><B><A HREF="../../java/lang/Thread.html#yield()">yield</A></B>()</CODE>
291
292 <BR>
293 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
294 </TR>
295 </TABLE>
296 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
297 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
298 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
299 <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="../../java/lang/Object.html" title="class in java.lang">Object</A></B></TH>
300 </TR>
301 <TR BGCOLOR="white" CLASS="TableRowColor">
302 <TD><CODE><A HREF="../../java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="../../java/lang/Object.html#getClass()">getClass</A>, <A HREF="../../java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="../../java/lang/Object.html#notify()">notify</A>, <A HREF="../../java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="../../java/lang/Object.html#toString()">toString</A>, <A HREF="../../java/lang/Object.html#wait()">wait</A>, <A HREF="../../java/lang/Object.html#wait(long)">wait</A></CODE></TD>
303 </TR>
304 </TABLE>
305 &nbsp;
306 <P>
307
308 <!-- ============ FIELD DETAIL =========== -->
309
310 <A NAME="field_detail"><!-- --></A>
311 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
312 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
313 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
314 <B>Field Detail</B></FONT></TH>
315 </TR>
316 </TABLE>
317
318 <A NAME="MIN_PRIORITY"><!-- --></A><H3>
319 MIN_PRIORITY</H3>
320 <PRE>
321 public static final int <B>MIN_PRIORITY</B></PRE>
322 <DL>
323 <DD>The minimum priority that a thread can have. The value is 1.
324 <P>
325 <DL>
326 <DT><B>See Also:</B><DD><A HREF="../../constant-values.html#java.lang.Thread.MIN_PRIORITY">Constant Field Values</A></DL>
327 </DL>
328 <HR>
329
330 <A NAME="NORM_PRIORITY"><!-- --></A><H3>
331 NORM_PRIORITY</H3>
332 <PRE>
333 public static final int <B>NORM_PRIORITY</B></PRE>
334 <DL>
335 <DD>The priority that is assigned to the primordial thread. The value is 5.
336 <P>
337 <DL>
338 <DT><B>See Also:</B><DD><A HREF="../../constant-values.html#java.lang.Thread.NORM_PRIORITY">Constant Field Values</A></DL>
339 </DL>
340 <HR>
341
342 <A NAME="MAX_PRIORITY"><!-- --></A><H3>
343 MAX_PRIORITY</H3>
344 <PRE>
345 public static final int <B>MAX_PRIORITY</B></PRE>
346 <DL>
347 <DD>The maximum priority that a thread can have. The value is 10.
348 <P>
349 <DL>
350 <DT><B>See Also:</B><DD><A HREF="../../constant-values.html#java.lang.Thread.MAX_PRIORITY">Constant Field Values</A></DL>
351 </DL>
352
353 <!-- ========= CONSTRUCTOR DETAIL ======== -->
354
355 <A NAME="constructor_detail"><!-- --></A>
356 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
357 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
358 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
359 <B>Constructor Detail</B></FONT></TH>
360 </TR>
361 </TABLE>
362
363 <A NAME="Thread()"><!-- --></A><H3>
364 Thread</H3>
365 <PRE>
366 public <B>Thread</B>()</PRE>
367 <DL>
368 </DL>
369 <HR>
370
371 <A NAME="Thread(java.lang.String)"><!-- --></A><H3>
372 Thread</H3>
373 <PRE>
374 public <B>Thread</B>(<A HREF="../../java/lang/String.html" title="class in java.lang">String</A>&nbsp;name)</PRE>
375 <DL>
376 </DL>
377
378 <!-- ============ METHOD DETAIL ========== -->
379
380 <A NAME="method_detail"><!-- --></A>
381 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
382 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
383 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
384 <B>Method Detail</B></FONT></TH>
385 </TR>
386 </TABLE>
387
388 <A NAME="isAlive()"><!-- --></A><H3>
389 isAlive</H3>
390 <PRE>
391 public final boolean <B>isAlive</B>()</PRE>
392 <DL>
393 <DD><DL>
394 </DL>
395 </DD>
396 </DL>
397 <HR>
398
399 <A NAME="run()"><!-- --></A><H3>
400 run</H3>
401 <PRE>
402 public abstract void <B>run</B>()</PRE>
403 <DL>
404 <DD><DL>
405 </DL>
406 </DD>
407 </DL>
408 <HR>
409
410 <A NAME="start()"><!-- --></A><H3>
411 start</H3>
412 <PRE>
413 public final void <B>start</B>()</PRE>
414 <DL>
415 <DD><DL>
416 </DL>
417 </DD>
418 </DL>
419 <HR>
420
421 <A NAME="yield()"><!-- --></A><H3>
422 yield</H3>
423 <PRE>
424 public static void <B>yield</B>()</PRE>
425 <DL>
426 <DD><DL>
427 </DL>
428 </DD>
429 </DL>
430 <HR>
431
432 <A NAME="sleep(long)"><!-- --></A><H3>
433 sleep</H3>
434 <PRE>
435 public static void <B>sleep</B>(long&nbsp;aMilliseconds)
436                   throws <A HREF="../../java/lang/InterruptedException.html" title="class in java.lang">InterruptedException</A></PRE>
437 <DL>
438 <DD><DL>
439
440 <DT><B>Throws:</B>
441 <DD><CODE><A HREF="../../java/lang/InterruptedException.html" title="class in java.lang">InterruptedException</A></CODE></DL>
442 </DD>
443 </DL>
444 <HR>
445
446 <A NAME="currentThread()"><!-- --></A><H3>
447 currentThread</H3>
448 <PRE>
449 public static <A HREF="../../java/lang/Thread.html" title="class in java.lang">Thread</A> <B>currentThread</B>()</PRE>
450 <DL>
451 <DD><DL>
452 </DL>
453 </DD>
454 </DL>
455 <HR>
456
457 <A NAME="getPriority()"><!-- --></A><H3>
458 getPriority</H3>
459 <PRE>
460 public final int <B>getPriority</B>()</PRE>
461 <DL>
462 <DD><DL>
463 </DL>
464 </DD>
465 </DL>
466 <HR>
467
468 <A NAME="setPriority(int)"><!-- --></A><H3>
469 setPriority</H3>
470 <PRE>
471 public final void <B>setPriority</B>(int&nbsp;priority)</PRE>
472 <DL>
473 <DD>Set the priority of this thread. Higher number have higher priority.
474  The scheduler will always run the highest priority thread in preference
475  to any others. If more than one thread of that priority exists the
476  scheduler will time-slice them. In order for lower priority threas
477  to run a higher priority thread must cease to be runnable. i.e. it
478  must exit, sleep or wait on a monitor. It is not sufficient to just
479  yield.
480  <P>
481  Threads inherit the priority of their parent. The primordial thread
482  has priority NORM_PRIORITY.
483 <P>
484 <DD><DL>
485 <DT><B>Parameters:</B><DD><CODE>priority</CODE> - must be between MIN_PRIORITY and MAX_PRIORITY.</DL>
486 </DD>
487 </DL>
488 <HR>
489
490 <A NAME="interrupt()"><!-- --></A><H3>
491 interrupt</H3>
492 <PRE>
493 public void <B>interrupt</B>()</PRE>
494 <DL>
495 <DD>Set the interrupted flag. If we are asleep we will wake up
496  and an InterruptedException will be thrown.
497 <P>
498 <DD><DL>
499 </DL>
500 </DD>
501 </DL>
502 <HR>
503
504 <A NAME="interrupted()"><!-- --></A><H3>
505 interrupted</H3>
506 <PRE>
507 public static boolean <B>interrupted</B>()</PRE>
508 <DL>
509 <DD><DL>
510 </DL>
511 </DD>
512 </DL>
513 <HR>
514
515 <A NAME="isInterrupted()"><!-- --></A><H3>
516 isInterrupted</H3>
517 <PRE>
518 public final boolean <B>isInterrupted</B>()</PRE>
519 <DL>
520 <DD><DL>
521 </DL>
522 </DD>
523 </DL>
524 <HR>
525
526 <A NAME="isDaemon()"><!-- --></A><H3>
527 isDaemon</H3>
528 <PRE>
529 public final boolean <B>isDaemon</B>()</PRE>
530 <DL>
531 <DD>Set the daemon flag. If a thread is a daemon thread its existence will
532  not prevent a JVM from exiting.
533 <P>
534 <DD><DL>
535 </DL>
536 </DD>
537 </DL>
538 <HR>
539
540 <A NAME="setDaemon(boolean)"><!-- --></A><H3>
541 setDaemon</H3>
542 <PRE>
543 public final void <B>setDaemon</B>(boolean&nbsp;on)</PRE>
544 <DL>
545 <DD><DL>
546 </DL>
547 </DD>
548 </DL>
549 <HR>
550
551 <A NAME="join()"><!-- --></A><H3>
552 join</H3>
553 <PRE>
554 public final void <B>join</B>()
555                 throws <A HREF="../../java/lang/InterruptedException.html" title="class in java.lang">InterruptedException</A></PRE>
556 <DL>
557 <DD>Join not yet implemented
558 <P>
559 <DD><DL>
560
561 <DT><B>Throws:</B>
562 <DD><CODE><A HREF="../../java/lang/InterruptedException.html" title="class in java.lang">InterruptedException</A></CODE></DL>
563 </DD>
564 </DL>
565 <HR>
566
567 <A NAME="join(long)"><!-- --></A><H3>
568 join</H3>
569 <PRE>
570 public final void <B>join</B>(long&nbsp;timeout)
571                 throws <A HREF="../../java/lang/InterruptedException.html" title="class in java.lang">InterruptedException</A></PRE>
572 <DL>
573 <DD><DL>
574
575 <DT><B>Throws:</B>
576 <DD><CODE><A HREF="../../java/lang/InterruptedException.html" title="class in java.lang">InterruptedException</A></CODE></DL>
577 </DD>
578 </DL>
579 <!-- ========= END OF CLASS DATA ========= -->
580 <HR>
581
582
583 <!-- ======= START OF BOTTOM NAVBAR ====== -->
584 <A NAME="navbar_bottom"><!-- --></A>
585 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
586 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
587 <TR>
588 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
589 <A NAME="navbar_bottom_firstrow"><!-- --></A>
590 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
591   <TR ALIGN="center" VALIGN="top">
592   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
593   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
594   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
595   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
596   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
597   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
598   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
599   </TR>
600 </TABLE>
601 </TD>
602 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
603 </EM>
604 </TD>
605 </TR>
606
607 <TR>
608 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
609 &nbsp;<A HREF="../../java/lang/System.html" title="class in java.lang"><B>PREV CLASS</B></A>&nbsp;
610 &nbsp;<A HREF="../../java/lang/ThreadDeath.html" title="class in java.lang"><B>NEXT CLASS</B></A></FONT></TD>
611 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
612   <A HREF="../../index.html?java/lang/Thread.html" target="_top"><B>FRAMES</B></A>  &nbsp;
613 &nbsp;<A HREF="Thread.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
614 &nbsp;<SCRIPT type="text/javascript">
615   <!--
616   if(window==top) {
617     document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
618   }
619   //-->
620 </SCRIPT>
621 <NOSCRIPT>
622   <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
623 </NOSCRIPT>
624
625
626 </FONT></TD>
627 </TR>
628 <TR>
629 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
630   SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
631 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
632 DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
633 </TR>
634 </TABLE>
635 <A NAME="skip-navbar_bottom"></A>
636 <!-- ======== END OF BOTTOM NAVBAR ======= -->
637
638 <HR>
639
640 </BODY>
641 </HTML>