首页
话题
动态
专家
文章
作者
公告
更多
积分规则
登录 或 注册
首页
话题
动态
专家
文章
作者
公告
积分规则
发表新帖
发表新帖
What are the common causes for high CPU usage?
前端
未结
关注
8
687
半阙折子戏
2020-12-13 08:19
Background:
In my application written in C++, I have created 3 threads:
AnalysisThread (or Producer) : it reads an input file, parses
8条回答
予麋鹿
(楼主)
2020-12-13 08:40
use asynchronous (file and socket) IO to reduce useless CPU waiting time.
use vertical threading model to reduce context switch if possible
use lock-less data structure
use a profiling tool, such as VTune, to figure out the hot spot and make optimization
0
讨论(0)
查看其它8个回答
发布评论:
提交评论
加载中...
验证码
看不清?
提交回复
热议问题