当前位置:网站首页>Six states of threads
Six states of threads
2022-06-24 10:23:00 【Ugly and ugly】
stay Java in , Threads have the following six states :
| state | explain |
|---|---|
| NEW | The initial state : Thread created , But it's not called yet start() Method |
| RUNNABLE | Running state :Java Threads refer to the ready and running states of the operating system as “ Running state ” |
| BLOCKED | Blocked state : Indicates that the thread is blocked by a lock |
| WAITING | Wait state : Indicates that the thread is waiting , Entering this state means that the current thread needs to wait for other threads to make some specific actions ( Notification or interruption ) |
| TIME_WAITING | Timeout wait status : This state is different from WAITIND, It can return by itself at a specified time |
| TERMINATED | Termination status : Indicates that the current thread has finished executing |
Threads are in their own life cycle , It's not fixed in a certain state , It's switching between different states as the code executes ,Java The following figure shows the change of thread status :

This article references from : Face slag counter attack :Java Ask , Let's see how many ways you can ! - Nuggets
边栏推荐
- How large and medium-sized enterprises build their own monitoring system
- SQL Server AVG function rounding
- How can I solve the problem that the swiper animation animation fails when switching between left and right rotations of the swiper?
- Wechat cloud hosting launch public beta: in the appointment of the publicity meeting
- Phpstrom code formatting settings
- SQL sever试题求最晚入职日期
- Distributed | how to make "secret calls" with dble
- 为什么 JSX 语法这么香?
- Web site development, lazy image loading
- Resolved: methods with the same name as their class will not be constructors in
猜你喜欢

Machine learning perceptron and k-nearest neighbor

Development of anti fleeing marketing software for health products

Using pandas to read SQL server data table

Machine learning - principal component analysis (PCA)

Internet of things? Come and see Arduino on the cloud

Cookie encryption 4 RPC method determines cookie encryption

uniapp开发微信小程序,显示地图功能,且点击后打开高德或腾讯地图。

6.套餐管理业务开发

Groovy obtains Jenkins credentials through withcredentials

机器学习——主成分分析(PCA)
随机推荐
Leetcode - 498: traversée diagonale
MYSQL数据高级
Safety and food security for teachers and students of the trapped Yingxi middle school
SQL Sever中的窗口函数row_number()rank()dense_rank()
Groovy obtains Jenkins credentials through withcredentials
SQL Sever关于like操作符(包括字段数据自动填充空格问题)
How to standardize data center infrastructure management process
包装类型的缓存机制
numpy. linspace()
How can I solve the problem that the swiper animation animation fails when switching between left and right rotations of the swiper?
Floating point notation (summarized from cs61c and CMU CSAPP)
canvas掉落的小球重力js特效动画
1.项目环境搭建
Internet of things? Come and see Arduino on the cloud
使用swiper左右轮播切换时,Swiper Animate的动画失效,怎么解决?
canvas无限扫描js特效代码
414-二叉树的递归遍历
时尚的弹出模态登录注册窗口
Recursive traversal of 414 binary tree
线程池的执行流程