当前位置:网站首页>122. Thread class thread method summary; Why is the thread start method start () not run ()?
122. Thread class thread method summary; Why is the thread start method start () not run ()?
2022-07-01 09:28:00 【Hip hop geek】
Thread Class thread method summary
<1> currentThread Get the current thread object ;
<2>getName Get the name of the thread ;
<3>setName Set thread ;
<4>getId Get threaded ID Uniqueness , Automatic system assignment ;
<5>setDaemon Set whether it is a background thread ;
<6>isDaemon Whether the thread is a background thread ;
<7>setPriority set priority ;
<8>getPriority Get priority ;
<9>start Start thread , Note that thread startup must use start Method ;
<10>isAlive Verify that the thread is active ;
<11>isInterrupted Whether the thread has been interrupted ;
<12>join Join in 、 Merge ;
<13>yield Comity ;
<14>interrupt Interrupt threads ;
<15>sleep sleep ;
Why is the thread startup method start() No run()?
start() After method , The state of the thread will switch to Ready state , Can participate cpu Assigned by ; and run Method , Manual call , Not at all Thread mechanism ; But ordinary object method calls , At this time, the sub thread is not working ;
边栏推荐
- Network counting 01 physical layer
- js valueOf 与 toString 区别
- 2.3 【kaggle数据集 - dog breed 举例】数据预处理、重写Dataset、DataLoader读取数据
- 韦东山板子编译内核问题解决
- 记一次redis超时
- Nacos service configuration and persistence configuration
- 3D打印Arduino 四轴飞行器
- Is it safe to dig up money and make new shares
- How to launch circle of friends marketing and wechat group activities
- Imitation of Baidu search results top navigation bar effect
猜你喜欢

nacos简易实现负载均衡

Imitation of Baidu search results top navigation bar effect

Dspic30f6014a LCD block display

Design and manufacture of simple digital display electronic scale

JS prototype chain

Construction of esp8266 FreeRTOS development environment

Vsync+ triple cache mechanism +choreographer
![[video game training] real topic of 2013 video game of infrared optical communication device](/img/ef/c2c45c1c6c24aed0a4e93101047372.png)
[video game training] real topic of 2013 video game of infrared optical communication device

【pytorch】2.4 卷积函数 nn.conv2d

3D printing Arduino four axis aircraft
随机推荐
利用闭包实现私有变量
【pytorch】transforms.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5))
Click the screen with your finger to simulate F11 and enter the full screen
Summary of reptile knowledge points
【ESP 保姆级教程 预告】疯狂Node.js服务器篇 ——案例:ESP8266 + DHT11 +NodeJs本地服务+ MySQL数据库
Tree structure --- binary tree 1
[pytorch learning] torch device
【ESP 保姆级教程】疯狂毕设篇 —— 案例:基于阿里云、小程序、Arduino的温湿度监控系统
Structure de l'arbre - - - arbre binaire 2 traversée non récursive
JS prototype chain
Log4j 日志框架
[ESP nanny level tutorial preview] crazy node JS server - Case: esp8266 + DS18B20 temperature sensor +nodejs local service + MySQL database
js valueOf 与 toString 区别
[ESP nanny level tutorial preview] crazy node JS server - Case: esp8266 + DHT11 +nodejs local service + MySQL database
JS use toString to distinguish between object and array
JS prototype inheritance can only inherit instances, not constructors
3D printing Arduino four axis aircraft
Is it safe to dig up money and make new shares
【ESP 保姆级教程 预告】疯狂Node.js服务器篇 ——案例:ESP8266 + MQ系列 + NodeJs本地服务 + MySql存储
How to effectively align team cognition