当前位置:网站首页>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 ;
边栏推荐
- delete和delete[]引发的问题
- 【ESP 保姆级教程 预告】疯狂Node.js服务器篇 ——案例:ESP8266 + DHT11 +NodeJs本地服务+ MySQL数据库
- 【pytorch】nn.CrossEntropyLoss() 与 nn.NLLLoss()
- I use flask to write the website "one"
- Set the type of the input tag to number, and remove the up and down arrows
- 2.4 激活函数
- Principle and application of single chip microcomputer timer, serial communication and interrupt system
- JS rewrite their own functions
- Rich text interpolation
- 2.2 【pytorch】torchvision. transforms
猜你喜欢

Understanding and implementation of AVL tree

Why is the Ltd independent station a Web3.0 website!
![[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

2.4 激活函数

3D printing Arduino four axis aircraft

Nacos service configuration and persistence configuration

Ranking list of domestic databases in February, 2022: oceanbase regained the "three consecutive increases", and gaussdb is expected to achieve the largest increase this month

【无标题】

dsPIC30F6014a LCD 方块显示

FAQ | FAQ for building applications for large screen devices
随机推荐
【pytorch】nn. AdaptiveMaxPool2d
Set the type of the input tag to number, and remove the up and down arrows
Redis source code learning (29), compressed list learning, ziplist C (II)
JS functionarguments object
微信小程序 webview 禁止页面滚动,同时又不影响业务内overflow的滚动的实现方式
Can diffusion models be regarded as an autoencoder?
Record a redis timeout
SDN_简单总结
Football and basketball game score live broadcast platform source code /app development and construction project
【pytorch】softmax函数
JS原型链
SDN_ Simple summary
【pytorch】nn.AdaptiveMaxPool2d
phpexcel 里 获取某一列的列表 获取某一列的字母
Short circuit operator lazy evaluation
Exception handling of classes in C #
Phishing identification app
利用闭包实现私有变量
laravel postman 提交表单出现419错误。2020年7月6日记。
富文本实现插值