首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Python > 为实时调度集cpu_rt_runtime需要程序内置

为实时调度集cpu_rt_runtime需要程序内置

资 源 简 介

This is a very practicing program (exactly, two) with pthread and basic coding part of C Language. I formerly want to write it with python :) After thinking a while, I decide to start my very first real program of pthread. With CONFIG_USER_SCHED=y in linux kernel, the rt sched program as pulseaudio, jackd would not get the rt sched before explicit set the realtime cpu bandwidth for them. However, you could not set this before there is at least one process running with the corresponding uid. Obviously, pulseaudio would not login first before his starting. This tiny program start daemons as the given uid, and then modify the /sys/kernel/uids/0/cpu_rt_runtime and the set the corresponding cpu_rt_runtime in /sys/kernel/uids/. So when the program running with the given uid can get the rt sched as they need. The pids of the started daemon would stored in files of the uid under /var/run/userdaemon/.

文 件 列 表

sys-apps
userdaemons
Manifest
userdaemons

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
0.211544s