idprio和rtprio
记一笔,没啥特别。
Unix系统的分时调度中,nice值(通
在FreeBSD的及时调度(real-time scheduling)实现中,增加了32个「及时(realtime)」优先级和32个「闲时调度(idle)」优先级。用户态进程可以通rtprio系统调用来为进程或线程指定这些优先级。这些优先级不会动态调整,故在抢占式调度中可以一直获得时间片,或只有在系统闲时才获得时间片。
共3篇文章。
记一笔,没啥特别。
Unix系统的分时调度中,nice值(通
在FreeBSD的及时调度(real-time scheduling)实现中,增加了32个「及时(realtime)」优先级和32个「闲时调度(idle)」优先级。用户态进程可以通rtprio系统调用来为进程或线程指定这些优先级。这些优先级不会动态调整,故在抢占式调度中可以一直获得时间片,或只有在系统闲时才获得时间片。
An interesting conversation in FreeBSDChina’s core:
delphij -> yarshure: I need some help on qmail
yarshure -> delphij: alu is qmail guru
delphij (continue the conversation with alu and finally solved the problem)
This is a complex problem. A peer to peer system consists many self-determinating nodes is hard to control, and when it goes crazy, it will be easy to launch a distributed denial-of-service (DDoS) attack.
Here are some of my thoughts, well, they are not mature and some of them might be misleading, but I will write them here.