logo       

Re: Multiple spread daemons on the same machine &real-time scheduling?: msg#00002

network.spread.user

Subject: Re: Multiple spread daemons on the same machine &real-time scheduling?

Several weeks ago, I prompted a small thread about running spread with
real-time priority.

http://commedia.cnds.jhu.edu/pipermail/spread-users/2006-October/003077.html

I just had a thought: has anyone ever considered using the POSIX
real-time scheduling API to achieve this result? E.g., functions like

sched_getscheduler()
sched_get_priority_max()
sched_setscheduler()
sched_getparam()

At least on Linux, you have to run as root to get real-time priority.
But in the sample programs I've written using the above (and related)
functions, it's pretty easy to make a whole process real-time. In
other words, I was thinking you could probably just insert a few of
the right POSIX real-time priority functions into spread's main()
function, and recompile.

Thoughts?

Thanks,
Matt


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise