Skip to contentSkip to conversation

How to prevent other processes from being scheduled

DISCUSSION J.Hwan Kim 3 participants 3 messages Nov 5, 2013 – Nov 6, 2013

lore
Share & tools
lore

J.Hwan Kim

author
#0 lore raw

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

#1 lore raw
Quoted 2 lines · J.Hwan Kim

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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 865 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20131105/2e18844c/attachment.bin

#2 lore raw
In reply to J.Hwan Kim
Quoted 11 lines · J.Hwan Kim

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.

Quoted 7 lines

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 ....

Signature · 7 lines
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com