Does anyone know what the max number of simultaneous boost deadline_timer instances can be created within a process in Linux? I believe boost uses the Posix timer_create method.
问问题
1336 次
1 回答
1
从 Linux timer_create 手册页:
The kernel preallocates a "queued real-time signal" for each timer created
using timer_create(). Consequently, the number of timers is limited by the
RLIMIT_SIGPENDING resource limit (see setrlimit(2)).
在 bash 中使用ulimit -i
来获取或设置 RLIMIT_SIGPENDING。在我的 Ubuntu 服务器上,该限制默认为 16382。
于 2012-08-10T14:47:03.430 回答