📄 9_4.htm
字号:
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb_2312-80">
<meta name="Author" content="Weng Kai">
<title>Thread information</title>
</head>
<body>
<h2>
9.4 线程运行中信息</h2>
<hr WIDTH="100%">
<br><b>Thread</b>类的方法
<pre>Thread.currentThread()</pre>
<pre>getName()</pre>
<pre>getThreadGroup()</pre>
<pre>getPriority()</pre>
<pre>isAlive()</pre>
<pre>isDaemon()</pre>
ThreadGroup类的方法
<pre>getName()</pre>
<pre>getParent()</pre>
<pre>getMaxPriority()</pre>
<pre>activeCount()</pre>
<pre>activeGroupCount()</pre>
<pre>enumerate(Thread[] list, boolean recursive)</pre>
Case Study: <a href="case/ThreadInfo/ThreadInfo.java">ThreadInfo.java</a>
<br>
<hr WIDTH="100%">
<DIV ALIGN=right><A HREF="../Lesson10/10.htm">Next Page</A></DIV>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -