what do you think about this?:
i work on a real time streaming project
and i have two seperate
threads which have infinite loops in
them.
first of all, what should i do in order
to make this application a real time process? If i set
the thread attributes of these two
threads to SCHED_FIFO and if htey have different priorities, does it
mean
that the one with the
higher priority will always use the CPU? and
also what about all the other
processes in the system that need CPU time?
So should i use SCHED_RR ?
thanks
in advance.
best
regards.
Hi,
U cant go actual realtime on
linux.
( ** CORRECT ME IF IM WRONG **
)
All that u can do is change the scheduling policy
of linux in ur application
through API's provided.
int
sched_setscheduler(pid_t pid, int policy, const struct sched_param
*p);
int
sched_getscheduler(pid_t pid);
struct
sched_param {
...
int
sched_priority;
...
};
U can assign priorities too with
that.
Refer man pages for above functions.
If u really want real time, go in for
RTLinux.
That can run Linux as a thread. So that u get all
linux functionality
also get RT performance when reqd.
all the best..
byebyeing u..
-nagaraj
\(*_*)/
----- Original Message -----
Sent: Wednesday, October 16, 2002 11:45
AM
Subject: real-time process
hi,
If someone says to make an application a
real-time process, what should we understand and do?
regards.