当前位置:网站首页>C multithreading learning note 1
C multithreading learning note 1
2022-06-10 13:58:00 【HollowKnightZ】
Thread time and space overhead
Thread space overhead
Thread Data structure of
Thread Kernel data structure, which has osid( Threads ID),context( Context )=> CPU Some variables of the register ( Time slice , A time slice 30ms)
User mode stack
A thread assignment 1M Of stack space to store some 【 Parameter or local variable 】
Kernel mode stack
stay CLR Thread operation of , Include thread synchronization , Most of them call the underlying win32 function , The user mode stack needs to be passed to the kernel mode
Thread time overhead
The process will load a lot when it starts dll、exe、 resources 、 Metadata
When the process starts , There are three application domains by default :System Domain、Shared Domain、Domain 1. To start a thread, Destroy one thread Will notify those in progress dll、attach、detach Sign a . notice dll My destination is to thread Do the preparatory work , Compare destroy , Let these dll Do resource cleanup .
Time slice switching
With a 12 A processor computer ,12 Logical processors are available for 12 Threads executing concurrently ,13 When threads execute concurrently, there must be one thread Sleep 30ms
边栏推荐
- 高性能实战Alibaba Sentinel笔记,深度还原阿里微服务高并发方案
- 《软件体系结构原理、方法与实践》第二版期末考试复习总结
- 算力网络照进现实,浩鲸科技如何构建?
- buuctf [PHP]XDebug RCE
- 2022 high frequency software test interview questions of large factories (with answers)
- 还在说大学排名是笑话?最新规定:世界top50大学可以直接落户上海!
- Net core Tianma XingKong series - Interface Implementation for dependency injection and mutual conversion of database tables and C entity classes
- 618 大促来袭,浅谈如何做好大促备战
- Solve the problem of cross sea high concurrent crash? so easy
- net core天马行空系列-可用于依赖注入的,数据库表和c#实体类互相转换的接口实现
猜你喜欢

Docker部署一个Redis集群
![[Multisim Simulation] differential amplifier circuit 2](/img/4e/f346a4e0e6171b4b7d8469ead7f250.png)
[Multisim Simulation] differential amplifier circuit 2

2022 high frequency software test interview questions of large factories (with answers)

5.8G微波雷达模块使用,5.8G微波雷达模块工作原理和介绍

How to locate the hot problem of the game

软件智能:aaas系统 度量衡及文法的形式规则

How to build Haojing technology when the computing power network is brought into reality?

算力网络照进现实,浩鲸科技如何构建?

【笔记】C语言数组指针、结构体+二维数组指针小记

基于FPGA的VGA协议实现
随机推荐
Notes - simple but adequate series_ The Yapi return parameter data should be an object type problem solving record
这些难搞的内存问题你都懂了吗?
typescript入门笔记(个人用)
2022年危险化学品生产单位安全生产管理人员考试模拟100题及在线模拟考试
传奇登录器提示连接服务器失败是怎么回事?怎么解决?
40 necessary methodologies for large factories
buuctf [PHP]XDebug RCE
anaconda安装opencv(cv2),在jupyter notebook中使用
[C language] pointer function, function pointer and array function
【解决】每次加载已经训练好的模型,生成的向量会有不同
「大模型」之所短,「知识图谱」之所长
CoordinatorLayout使用浅析
Implementation of VGA protocol based on FPGA
[notes] notes on C language array pointer, structure + two-dimensional array pointer
[note] the environment for setting up get injectedthread script supplemented by shellcode in Windows Security III and its use
buuctf [PHP]inclusion
软件智能:aaas系统 度量衡及文法的形式规则
buuctf [Jupyter]notebook-rce
Application analysis of key recording and playing of wt2003h4-16s voice chip
What can the graph of training and verification indicators tell us in machine learning?