小编kua*_*ngi的帖子

为什么不在 linux(timerfd) 上使用系统定时器?

我发现大部分服务器(例如RPG网页游戏服务器)总是自己实现定时器而不是使用系统定时器,例如在linux上,

int timerfd_create(int clockid, int flags)
Run Code Online (Sandbox Code Playgroud)

你能告诉我为什么吗?我认为系统 api(timerfd_create) 可以有更高的性能。

c++ linux timer

3
推荐指数
1
解决办法
3136
查看次数

标签 统计

c++ ×1

linux ×1

timer ×1