Re: Query: Real time process

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

 



Hi, Chetan Nanda,

2009/3/22 Chetan Nanda <chetannanda@xxxxxxxxx>:
> Hi All,
>
> I am experimenting with real time process on kernel version 2.6.24 (under
> UML) and having root privileges.
> I have written a simple code as follow:
>
> /*##############################*/
> int main()
> {
>     pid_t pid;
>     struct sched_param param;
>     pid = getpid();
>     memset((void *)&param, 0 , sizeof(struct sched_param));
>     param.sched_priority = 30;
>
>     /*change the priority to rt*/
>     sched_setscheduler(pid,SCHED_FIFO, &param);
>
>     while(1);
> }
> /*##############################*/
>
> On running this program cause system to hangs and this is as per the real
> time task implementation in the kernel.
> Which says a rt task with policy equal to 'SCHED_FIFO' will run till it
> voluntarily release CPU.
>
> Is there any way to kill such task? Isn't this kind of behavior compromising
> system security?
>
> ~~
> Chetan Nanda
>

You could try the RT watchdog. Under this link there's article
describing how it works:
http://rt.wiki.kernel.org/index.php/RT_Watchdog

--
Denis

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[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