当前位置:网站首页>函数总结(1)
函数总结(1)
2022-06-22 09:04:00 【zuhan_20210314】
1、rcu_read_lock()
背景:CPU的速度与访问内存的速度差距越来越大,而这种锁使用了原子操作指令,它需要原子地访问内存,也就说获得锁的开销与访存速度相关。
RCU(Read-Copy Update),是 Linux 中比较重要的一种同步机制。顾名思义就是“读,拷贝更新”,再直白点是“随意读,但更新数据的时候,需要先复制一份副本,在副本上完成修改,再一次性地替换旧数据”。这是 Linux 内核实现的一种针对“读多写少”的共享数据的同步机制。
来自 https://www.cnblogs.com/qcloud1001/p/7755331.html
来自 https://blog.csdn.net/wendowswd/article/details/90575606
2、for_each_possible_cpu (i)
cpu_possible_map()
机器上最多有多少个CPU,包括本机的CPU,以及可以热插拔的CPU。
cpu_present_map()
当前有多少个CPU
cpu_online_map()
在当前的CPU中,有多少个可用的CPU。
for_each_possible_cpu(i)/for_each_present_cpu(i)/for_each_online_cpu(i)
遍历cpu
https://blog.csdn.net/guowenyan001/article/details/44224759
边栏推荐
- 项目优化+上线(掌握了么?)
- 国外十款免费开源PHP网店程序介绍
- 10 decoration mode
- Installation and use of Jupiter notebook
- Matrix decomposition
- Message Oriented Middleware (message queue)
- 新型冠狀病毒疫情
- PHP de duplication and arrange complete small functions in descending order of length
- Off line identification of least square method
- 【node】脚手架搭建服务器,完成token验证
猜你喜欢

15 command mode

Chapter II exercise | MNIST dataset | Titanic dataset | image enhancement

【uni-app】实战总结(含多端打包)

【目标检测】|检测错误机制 Why Object Detectors Fail: Investigating the Influence of the Dataset

Report: in the technical field, men are more likely to get job interviews

Thoroughly understand my SQL index knowledge points

Spark yard memory resource calculation and analysis (Reference) -- optimized configuration of executor cores, nums and memory

Continuous training on tensorflow breakpoint (principle + code explanation)

Deeply analyze the usage of final keyword
![In the monorepo learning, execute NPM run build to report error[err\u require\esm] of ES module](/img/76/ec4776bcd452584290ef8bf5d0e06f.jpg)
In the monorepo learning, execute NPM run build to report error[err\u require\esm] of ES module
随机推荐
Matplotlib | temperature change visualization
Monaco editor format JSON, SQL
luogu P4557 [JSOI2018]战争
My first go program
What is defi and what mode is defi?
PHP output color image with specified height and width for web page background image
WebRTC系列-网络传输之IceConfig及stunPing失败处理
Flask blog practice - display the navigation menu and home page data of the whole site
Luogu p4557 [jsoi2018] war
Troubleshooting various errors when Navicat for MySQL connects to MySQL database
Report: in the technical field, men are more likely to get job interviews
Hashtable source code analysis, collections Synchronizedmap parsing
三个不同线程顺序打印ABC十种写法【并发编程JUC】
pytorch OSError: DLL load failed: 问题解决方法
【uni-app】实战总结(含多端打包)
XSS vulnerability attack
Eureka的InstanceInfoReplicator类(服务注册辅助工具)
[tensorboard] step on all minefields and solve all your problems
Epidemic situation of novel coronavirus
luogu P4292 [WC2010]重建计划