Java in a Nutshell, 5th Edition [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Java in a Nutshell, 5th Edition [Electronic resources] - نسخه متنی

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید


Thread.Statejava.lang

Java 5.0serializable comparable enum



This enumerated
type defines the possible
states
of a thread. Call the getState(
) method of a Thread
object to obtain one of the enumerated constants defined here. A
NEW thread has not been started yet, and a
TERMINATED tHRead has exited. A
BLOCKED thread is waiting to enter a
synchronized method or block. A
WAITING thread is waiting in
Object.wait( ), Thread.join( ),
or a similar method. A
TIMED_WAITING thread is waiting but is subject to a
timeout, such as in THRead.sleep( ) or the timed
versions of Object.wait( ) and
Thread.join( ). Finally, a thread that has been
started and has not yet exited and is not blocked or waiting is
RUNNABLE. This does not mean that the operating
system is currently running it or that it is even making any forward
progress, but that it is at least available to run when the operating
system gives it the CPU.

public enum

Thread.State {
// Enumerated Constants

NEW ,

RUNNABLE ,

BLOCKED ,

WAITING ,

TIMED_WAITING ,

TERMINATED ;
// Public Class Methods
public static Thread.State

valueOf (String

name );
public static final Thread.State[ ]

values ( );
}


Returned By


Thread.getState( ),
java.lang.management.ThreadInfo.getThreadState( )


    / 1191