RE: real-time process

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi,
thank you for your response.
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.

 
 
 
 
-----Original Message-----
From: Nagaraj [mailto:nagaraj@smartyantra.com]
Sent: Wednesday, October 16, 2002 1:44 PM
To: Osman Çinar Eren; kernelnewbies@nl.linux.org
Subject: Re: real-time process

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.

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux