博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
线程的状态
阅读量:4229 次
发布时间:2019-05-26

本文共 318 字,大约阅读时间需要 1 分钟。

线程对象在不同的运行时期有不同的状态,状态信息就存在于State枚举类中,
    * public static enum Thread.State extends Enum<Thread.State>
    线程状态,线程可以处于下列状态之一
        * NEW
            至今尚未启动的线程处于这种状态
        * RUNNABLE
            正在Java虚拟机中执行的线程处于这种状态
        * BLOCKED
            受阻塞并等待某个监视器锁的线程处于这种状态
        * WAITING
            无限期地等待另一个线程来执行某一特定操作的线程处于这种状态
        * TIMED_WAITING
            等待另一个线程来执行取决于指定等待时间的操作的线程处于这种状态
        * TERMINATED
            已退出的线程处于这种状态。

转载地址:http://nmjqi.baihongyu.com/

你可能感兴趣的文章
Computer Security Basics
查看>>
Sams Teach Yourself MySQL in 10 Minutes
查看>>
Information Systems : The State of the Field
查看>>
IPv6 Essentials
查看>>
Microsoft Visual C++ 2005 Express Edition Programming for the Absolute Beginner
查看>>
Microsoft Visual Basic 2005 Express Edition Programming for the Absolute Beginner
查看>>
Pro .NET 2.0 Windows Forms and Custom Controls in C#
查看>>
Beginning Regular Expressions
查看>>
Beginning Visual Web Developer 2005 Express: From Novice to Professional
查看>>
Beginning Programming
查看>>
Windows .NET Server 2003 Domains & Active Directory
查看>>
Information Systems : Achieving Success by Avoiding Failure
查看>>
AutoCAD & AutoCAD LT All-in-One Desk Reference For Dummies
查看>>
C# Programmer's Handbook
查看>>
Constructing Accessible Web Sites
查看>>
Linux Smart Homes For Dummies
查看>>
Building an ASP.NET Intranet
查看>>
Automating UNIX and Linux Administration
查看>>
Advanced C# Programming
查看>>
The Java(TM) Tutorial: A Short Course on the Basics (3rd Edition)
查看>>