Re: On thread scheduling

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Matthias Kaehlcke
Date: Friday, September 14, 2007 - 10:39 pm

El Sat, Sep 15, 2007 at 01:40:00AM +0300 Heikki Orsila ha dit:


i wonder if assigning a real time priority with
pthread_setschedparam() to the caller of your interrupt_handler()
function would solve your problem. this way the main() thread is never
scheduled when the interrupt_handler() thread is
runnable. interrupt_handler() should be as short as possible,
otherwise you risk starving of the rest of your systems processes.

-- 
Matthias Kaehlcke
Linux Application Developer
Barcelona

        Representation of the world, like the world itself, is
        the work of men; they describe it from their own point
         of view, which they  confuse with the absolute truth
                          (Simone de Beauvoir)
                                                                 .''`.
    using free software / Debian GNU/Linux | http://debian.org  : :'  :
                                                                `. `'`
gpg --keyserver pgp.mit.edu --recv-keys 47D8E5D4                  `-
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
On thread scheduling, Heikki Orsila, (Fri Sep 14, 3:40 pm)
Re: On thread scheduling, Matthias Kaehlcke, (Fri Sep 14, 10:39 pm)
Re: On thread scheduling, Ray Lee, (Sat Sep 15, 7:54 am)
Re: On thread scheduling, Kyle Moffett, (Sun Sep 16, 12:16 am)