1.
New state After the creations of Thread instance the thread is in this state but before the start() method invocation. At this point, the thread is considered not alive.
2.
Runnable (Ready-to-run) state . A thread start its life from Runnable state. A thread first enters runnable state after the invoking of start() method but a thread can return to this state after either running, waiting, sleeping or coming back from blocked state also.
On this state a thread is waiting for a turn on the processor.
3.
Running state . A thread is in running state that means the thread is currently executing.
there is only one way to enter in Running state: the scheduler select a thread from runnable pool.
4.
Dead state . A thread can be considered dead when its run() method completes. If any thread comes on this state that means it cannot ever run again.
5.
Blocked - A thread can enter in this state because of waiting the resources that are hold by another thread.
Sleeping On this state, the thread is still alive but it is not runnable. On this state a thread sleeps for a specified amount of time. You can use the method sleep( ) to stop the running state of a thread.
Waiting for Notification A thread waits for notification from another thread.
The thread sends back to runnable state after sending notification from another thread.
Blocked on I/O The thread waits for completion of blocking operation. A thread can enter on this state because of waiting I/O resource. In that case the thread sends back to runnable state after availability of resources.
Blocked for joint completion The thread can come on this state because of waiting the completion of another thread.
Blocked for lock acquisition The thread can come on this state because of waiting to acquire the lock of an object.
分享到:
相关推荐
MO-NILM:一种用于 NILM 分类的多目标进化算法MO-NILM: A multi-objective evolutionary algorithm for NILM [1] Machlev, R.、Belikov, J.、Beck, Y. 和 Levron, Y. (2019)。MO-NILM:一种用于 NILM 分类的多目标...
TikTok-31.5.3-All-Multi-Dmitry.apk
RedGate.SQL.Multi.Script.1.1.0.34.cracked-SND
Programming.Scala_Tackle.Multi-Core.Complexity.on.the.Java.Virtual.Machine[2009][EN][PDF] Programming Scala: Tackle Multi-Core Complexity on the Java Virtual Machine by Venkat Subramaniam Scala is ...
Cyberlink.All.Software-Multi.Patch.FIXED-REiS.exeCyberlink.All.Software-Multi.Patch.FIXED-REiS.exeCyberlink.All.Software-Multi.Patch.FIXED-REiS.exe
[一些机器人方面的PDF].Motion.Planning.of.Mobile.Multi-Limb.Robotic.Systems
Packtpub.WCF.4.5.Multi-Layer.Services.Development.with.Entity.Framework.Dec.2012
TcyBevel: multi colored bevels. - TcyPanel: runtime resize feature, multi colored bevels, gradient and shadow feature. - TcyAdvPanel: like TcyPanel plus wallpaper feature. - TcyFlowPanel: runtime ...
Apress.PHP.Arrays.Single.Multi-dimensional.Associative.and.Object.Arrays.in.PHP.7.1484225554.rar 最新书籍,精讲PHP数组,文字版PDF
ISO/IEC 7816-2:2007 Identification cards — Integrated circuit cards — Part 2: Cards with contacts — Dimensions and location of the contacts". Iso.org. 2007-10-11. Retrieved 2011-11-12. ISO/IEC 7816...
最新NGUI V 3.8.0 3.8.0 ...- NEW: Setting a Unity ...- FIX: Popup lists should now work better with multi-touch events. - FIX: Variety of fixes for obscure issues that most would have never encountered.
ActivePerl-5.6.1.633-MSWin32-x86.msi
- FIX: Transform multi-object editing was not quite right for widgets... - FIX: "Shrink to fit" option on labels now works vertically, not just horizontally. - FIX: Changing a sprite in inspector will...
Multi-SwipeBackLayout 多方向支持SwipeBackLayout 更新 2017-2-28 【BUG】Activity无法返回BUG >>提交及解决 2017-2-26 对ViewPager中多种View,如ScrollView、非滚动视图做了适配 使用说明 配置依赖,发布到...
10)..Added: Support for multi-monitor info 11)..Added: Support for detection of Windows 10 updates 12)..Added: OS edition detection 13)..Added: "User" and "Session" columns to processes list, ...
ule into an image reconstruction network that fuses multi- scale style abstractions, the Avatar-Net renders multi-scale stylization for any style image in one feed-forward pass. We demonstrate the ...
strawberry-perl,Windows下的64位安装文件,perl语言开发环境,解决官网下载速度过慢的问题。
TikTok-29.5.4-All-Multi-Mod.apk
Title: WCF Multi-Layer Services Development with Entity Framework, 4th Edition Author: Mike Liu Length: 388 pages Edition: 4 Language: English Publisher: Packt Publishing Publication Date: 2014-10-27 ...
推多路流-资源-obs-multi-rtmp-portable