当前位置:网站首页>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 .
边栏推荐
- Exploration on Optimization of elastic expansion engineering
- Anaconda 中使用 You Get
- L2tp/ipsec one click installation script
- Unity 的序列化
- Q & A on cloud development cloudbase hot issues of "Huage youyue phase I"
- 向量操作与坐标转换相关方法
- L2TP connection failure guide in VPN
- 光照使用的简单总结
- 『C语言』系统日期&时间
- [Lua language from bronze to king] Part 2: development environment construction +3 editor usage examples
猜你喜欢

鸿蒙os开发三

面试中的最常被问到的两种锁

Blue Bridge Cup seven segment code (dfs/ shape pressing + parallel search)

图形技术之管线概念

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

Baidu map, coordinate inversion, picking coordinate position

免费ICP域名备案查接口

The two most frequently asked locks in the interview

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

爬虫基础B1——Scrapy(B站学习笔记)
随机推荐
位运算
Maxcompute remote connection, uploading and downloading data files
Unity Culling 相关技术
屏幕截图推荐—Snipaste
Global and Chinese market of bed former 2022-2028: Research Report on technology, participants, trends, market size and share
timer使用备注
[Lua language from bronze to king] Part 2: development environment construction +3 editor usage examples
阿里云全链路数据治理
Ke Yi fallible point
简单的折射效果
Baidu map, coordinate inversion, picking coordinate position
Extend ado Net to realize object-oriented CRUD (.Net core/framework)
10 common malware detection and analysis platforms
站在风暴中心:如何给飞奔中的腾讯更换引擎
本地备份和还原 SQL Server 数据库
Wechat cloud hosting hot issues Q & A
《canvas》之第1章 canvas概述
(cve-2020-11978) command injection vulnerability recurrence in airflow DAG [vulhub range]
MySQL case: analysis of full-text indexing
Blue Bridge Cup seven segment code (dfs/ shape pressing + parallel search)