当前位置:网站首页>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
边栏推荐
- What is the use of cloud redis? How to use cloud redis?
- 云Redis 有什么用? 云redis怎么用?
- Mysql 45讲学习笔记(十)force index
- Selenium driver ie common problem solving message: currently focused window has been closed
- tars源码分析之5
- How does the inner roll break?
- If there are two sources in the same job, it will be reported that one of the databases cannot be found. Is there a boss to answer
- Data analysis notes 09
- the input device is not a TTY. If you are using mintty, try prefixing the command with ‘winpty‘
- The cloud native programming challenge ended, and Alibaba cloud launched the first white paper on application liveliness technology in the field of cloud native
猜你喜欢
About how idea sets up shortcut key sets
notepad++如何统计单词数量
leetcode825. Age appropriate friends
Knowledge payment applet dream vending machine V2
List of top ten professional skills required for data science work
selenium IDE插件下载安装使用教程
【网络数据传输】基于FPGA的百兆网/兆网千UDP数据包收发系统开发,PC到FPGA
Industrial computer anti-virus
Review of enterprise security incidents: how can enterprises do a good job in preventing source code leakage?
centos8安装mysql.7 无法开机启动
随机推荐
Selenium ide plug-in download, installation and use tutorial
[number theory] fast power (Euler power)
[network data transmission] FPGA based development of 100M / Gigabit UDP packet sending and receiving system, PC to FPGA
2022, peut - être la meilleure année économique de la prochaine décennie, avez - vous obtenu votre diplôme en 2022? Comment est - ce prévu après la remise des diplômes?
Code rant: from hard coding to configurable, rule engine, low code DSL complexity clock
CMS source code of multi wechat management system developed based on thinkphp6, with one click curd and other functions
Paddleocr prompt error: can not import AVX core while this file exists: xxx\paddle\fluid\core_ avx
抽奖系统测试报告
What is industrial computer encryption and how to do it
How can the old version of commonly used SQL be migrated to the new version?
MySQL 45 lecture learning notes (XIII) delete half of the table data, and the table file size remains the same
金盾视频播放器拦截的软件关键词和进程信息
2022年6月小结
Selenium driver ie common problem solving message: currently focused window has been closed
The most effective futures trend strategy: futures reverse merchandising
Summary of leetcode BFS question brushing
移动适配:vw/vh
期末周,我裂开
校园网络问题
Redis面试题集