当前位置:网站首页>Status of the thread
Status of the thread
2022-07-04 06:57:00 【No trace after wind 2018】
State of thread
Java In the thread 7 States
- newly build (NEW): A new thread object is created , But it's not called yet start() Method start up .
- Can run (RUNNABLE):Java The thread will be ready (ready) And in the operation of the (running) The two states are generally called “ function ”. After the thread object is created , Other threads ( such as main Threads ) Called the object's start() Method . The thread in this state is in the runnable thread pool , Waiting to be selected by thread scheduling , obtain CPU Right to use , It's in a ready state (ready). The thread in the ready state is getting CPU After the time slice, it becomes the running state (running).
- Blocking (BLOCKED): Indicates that the thread is blocked by a lock .
- wait for (WAITING): A thread entering this state needs to wait for some specific action from another thread ( Notification or interruption ).
- Overtime waiting (TIMED_WAITING): This state is different from WAITING, It can return on its own after a specified time .
- End (TERMINATED): Indicates that the thread has finished executing .
State transition diagram of thread

边栏推荐
- Why does the producer / consumer mode wait () use while instead of if (clear and understandable)
- uniapp小程序分包
- 关于IDEA如何设置快捷键集
- Tar source code analysis Part 2
- Bottom problem of figure
- Centos8 install mysql 7 unable to start up
- Data analysis notes 09
- Deep profile data leakage prevention scheme
- What is industrial computer encryption and how to do it
- Introduction to spark core components
猜你喜欢

2022 where to find enterprise e-mail and which is the security of enterprise e-mail system?

Wechat applet scroll view component scrollable view area

selenium驱动IE常见问题解决Message: Currently focused window has been closed.

What is industrial computer encryption and how to do it
![[Valentine's day] - you can change your love and write down your lover's name](/img/ab/402872ad39f9dc58fd27dd6fc823ef.jpg)
[Valentine's day] - you can change your love and write down your lover's name

centos8安装mysql.7 无法开机启动

GoogleChromePortable 谷歌chrome浏览器便携版官网下载方式

《剑指Offer》第2版——力扣刷题

uniapp小程序分包

Can the out of sequence message complete TCP three handshakes
随机推荐
移动适配:vw/vh
Cochez une colonne d'affichage dans une colonne de tableau connue
关于IDEA如何设置快捷键集
Check and display one column in the known table column
Tar source code analysis 6
The cloud native programming challenge ended, and Alibaba cloud launched the first white paper on application liveliness technology in the field of cloud native
颈椎、脚气
Tar source code analysis Part 3
Flink memory model, network buffer, memory tuning, troubleshooting
云Redis 有什么用? 云redis怎么用?
CORS is not intended to protect API endpoints - nikofischer
金盾视频播放器拦截的软件关键词和进程信息
leetcode 310. Minimum Height Trees
Software keywords and process information intercepted by Golden Shield video player
JS common time processing functions
ADC voltage calculation of STM32 single chip microcomputer
ABCD four sequential execution methods, extended application
Download kicad on Alibaba cloud image station
the input device is not a TTY. If you are using mintty, try prefixing the command with ‘winpty‘
2022 Xinjiang's latest eight members (Safety Officer) simulated examination questions and answers