How to prevent other processes from being scheduled
Hi, everyone How can I prevent other processes than my specific application from being scheduled? I thougt that when my program being started, it would invokes the kernel to do local_irq_disable() and when it ended, it would call local_irq_enable() in order that scheduler not working when my specific program runs. But i seems do not work as I likes. Please give me some hints what i should do... Thanks in advance. J.Hwan Kim ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: How to prevent other processes from being scheduled
On Wed, 06 Nov 2013 00:51:03 +0900, J.Hwan Kim said: How can I prevent other processes than my specific application from being scheduled? What problem are you trying to solve by not allowing other processes to run? There's almost certainly a better approach. pgp63G3Ofeoja.pgp Description: PGP signature ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: How to prevent other processes from being scheduled
On Tue, Nov 5, 2013 at 10:51 PM, J.Hwan Kim frog1...@gmail.com wrote: Hi, everyone How can I prevent other processes than my specific application from being scheduled? I thougt that when my program being started, it would invokes the kernel to do local_irq_disable() and when it ended, it would call local_irq_enable() in order that scheduler not working when my specific program runs. But i seems do not work as I likes. Please give me some hints what i should do... Thanks in advance. J.Hwan Kim Sounds like you need to do (near) real time scheduling by using SCHED_FIFO scheduling class. CMIIW -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies