Do you have a question? Post it now! No Registration Necessary
Subject
- Posted on
Question on task scheduling in Linux
- 04-21-2009
- bhoot.jolokia
April 21, 2009, 5:12 pm

So I need some help understanding this: Lets say I have a C program on
Linux that creates 3 threads of equal priority. At some point during
execution, one of the threads A needs to execute a special function
without getting interrupted by B or C (critical section within A). How
can this be done? Can scheduling of A, B and C (I assume it is round
robin) be disabled from within A? Or is is better to increase A's
priority? I am guessing disabling interrupts does not make sense on
Linux.
Please, any help,
Linux that creates 3 threads of equal priority. At some point during
execution, one of the threads A needs to execute a special function
without getting interrupted by B or C (critical section within A). How
can this be done? Can scheduling of A, B and C (I assume it is round
robin) be disabled from within A? Or is is better to increase A's
priority? I am guessing disabling interrupts does not make sense on
Linux.
Please, any help,
Site Timeline
- » interface FTDI ttyUSB0
- — Next thread in » Embedded Linux
-
- » Embedded Linux Software Developer
- — Previous thread in » Embedded Linux
-
- » Crosscompiling for ARM: reloc type R_ARM_ABS32 is not supported for PIC - ...
- — Newest thread in » Embedded Linux
-
- » Capacitors at RF
- — The site's Newest Thread. Posted in » Electronics Design
-
- » [MANIFESTO] it.hobby.elettronica
- — The site's Last Updated Thread. Posted in » Electronics Hobby (Italian)
-