当前位置:网站首页>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

边栏推荐
- 【MySQL】数据库视图的介绍、作用、创建、查看、删除和修改(附练习题)
- notepad++如何统计单词数量
- What is tweeman's law?
- Background and current situation of domestic CDN acceleration
- [problem record] 03 connect to MySQL database prompt: 1040 too many connections
- Four sets of APIs for queues
- CMS source code of multi wechat management system developed based on thinkphp6, with one click curd and other functions
- Tar source code analysis 6
- Analysis of tars source code 1
- [FPGA tutorial case 8] design and implementation of frequency divider based on Verilog
猜你喜欢

The cloud native programming challenge ended, and Alibaba cloud launched the first white paper on application liveliness technology in the field of cloud native

Google Chrome Portable Google Chrome browser portable version official website download method

what the fuck! If you can't grab it, write it yourself. Use code to realize a Bing Dwen Dwen. It's so beautiful ~!

图的底部问题

【MySQL】数据库视图的介绍、作用、创建、查看、删除和修改(附练习题)

Wechat applet scroll view component scrollable view area

Centos8 install mysql 7 unable to start up
![[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

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

【GF(q)+LDPC】基于二值图GF(q)域的规则LDPC编译码设计与matlab仿真
随机推荐
同一个job有两个source就报其中一个数据库找不到,有大佬回答下吗
Mysql 45讲学习笔记(七)行锁
How notepad++ counts words
tars源码分析之2
Mysql 45讲学习笔记(十四)count(*)
the input device is not a TTY. If you are using mintty, try prefixing the command with ‘winpty‘
The most effective futures trend strategy: futures reverse merchandising
响应式移动Web测试题
测试用例的设计
Introduction to spark core components
kubernetes集群之Label管理
Selenium ide plug-in download, installation and use tutorial
云Redis 有什么用? 云redis怎么用?
《国民经济行业分类GB/T 4754—2017》官网下载地址
The important role of host reinforcement concept in medical industry
Google Chrome Portable Google Chrome browser portable version official website download method
MySQL 45 lecture learning notes (x) force index
com. alibaba. nacos. api. exception. NacosException
Knowledge payment applet dream vending machine V2
《剑指Offer》第2版——力扣刷题