当前位置:网站首页>Thread considerations
Thread considerations
2022-06-24 07:47:00 【Fog dispels eyesight】
Thread considerations
How the thread ends :
1 Thread functions return This is a normal exit
2 ExitThread
This function will terminate the thread , And causes the operating system to clear all operating system resources used by the thread . however ,C++ resources ( Such as C++ Class object ) Will not be revoked . For this reason , It's best to return... From a thread function , Instead of calling ExitThread Come back to .
Of course , have access to ExitThread Of dwExitThread Parameter tells the system why to set the exit code of the thread .ExitThread The function does not return any value , Because the thread has terminated , Can't execute more code .
3 TerminateThread
This kind of situation , Do not release the stack resources of the thread
4 The process exited .
边栏推荐
- [vulhub shooting range]] ZABBIX SQL injection (cve-2016-10134) vulnerability recurrence
- Counter attack from outsourcing to big factories! Android has been developed for 5 years, and after a year of dormancy, it has tried to become an offer harvester. Tencent has a fixed salary of 20*15
- 位运算
- Only two lines are displayed, and the excess part is displayed with Ellipsis
- What should I pay attention to after the live broadcast system source code is set up?
- 图形技术之坐标转换
- 云开发谁是卧底小程序源码
- C# Lambda
- [Lua language from bronze to king] Part 2: development environment construction +3 editor usage examples
- MSSQL high permission injection write horse to Chinese path
猜你喜欢

语料库数据处理个案实例(读取多个文本文件、读取一个文件夹下面指定的多个文件、解码错误、读取多个子文件夹文本、多个文件批量改名)

用Ngrok 配置属于自己的免费外网域名

光照使用的简单总结

语料库数据处理个案实例(句子检索相关个案)

Hongmeng OS development III

Free ICP domain name filing interface
![[vulhub shooting range]] ZABBIX SQL injection (cve-2016-10134) vulnerability recurrence](/img/c5/f548223666d7379a7d4aaed2953587.png)
[vulhub shooting range]] ZABBIX SQL injection (cve-2016-10134) vulnerability recurrence

GPU is not used when the code is running

Shader 常用函数

Baidu map, coordinate inversion, picking coordinate position
随机推荐
Tencent cloud security and privacy computing has passed the evaluation of the ICT Institute and obtained national recognition
Opencvsharp binary image anti color
atguigu----16-自定义指令
Black box and white box models for interpretable AI
Commandes de console communes UE
timer使用备注
tuple(元组)备注
Anaconda 中使用 You Get
LeetCode 207:课程表(拓扑排序判断是否成环)
POM configuration provided and test
闲谈:3AC到底发生了什么?
MSSQL high permission injection write horse to Chinese path
UTC、GMT、CST
行内元素、块元素、行内块元素
pair类备注
自动化测试的生命周期是什么?
(cve-2020-11978) command injection vulnerability recurrence in airflow DAG [vulhub range]
10. Tencent cloud IOT device side learning - firmware upgrade
Global and Chinese market of anion sanitary napkins 2022-2028: Research Report on technology, participants, trends, market size and share
How VPN works