Rif: Re: Periodic thread with Linux

silverio.di at qem.it silverio.di at qem.it
Fri May 23 07:58:46 UTC 2003


In realty I stay to evaluate a Montavista Linux 2.4.17 kernel for
the AU1100 AMD Alchemy CHIP, and I've compiled the kernel
with the realtime scheduler, but I isn't able to understand how to
create a timed thread (with RTEMS and SH I've already done in
the past).



                                                                                                                                       
                      Jack Cawkwell                                                                                                    
                      <J.Cawkwell at open.        Per:      silverio.di at qem.it                                                            
                      ac.uk>                   Cc:       rtems-users at oarcorp.com                                                       
                                               Oggetto:  Re: Periodic thread with Linux                                                
                      23/05/03 09.53                                                                                                   
                                                                                                                                       
                                                                                                                                       




This cannot be done under normal Linux. Linux is not real-time,
so you cannot guarantee that the process or thread will be
able to be scheduled to run at the time required. There are
systems that use Linux combined with some real-time support,
you may like to look at these if you want to have Linux and
a small amount of real-time processing.

Jack

silverio.di at qem.it writes:
>Hi to all,
>sorry If I use this group to ask Linux matter but,
>I hope someone could help me to create a
>periodic thread execution, in other words I would:
>
>- a thread which is executed every 10ms and when it
>finish it execution code  goes in sleep state till the next
>time planned execution....
>
>    1ms                          2ms                          3ms
>4ms                           5ms
>     |- - - - - - - - - - - - - - -|- - - - - - - - - - - - - - -|- - - -
>-
>- - - - - - - - - -|- - - - - - - - - - - - - - -|- - - -
>
>beeeeees..............beees.....................bes...........................beeeeees...............

>
>where:
>
>  b = entry point of thread code
>  e = esecution of thread code
>  s = end (sleep state) of thread code
>  . = other thread in scheduling
>
>thank you very much
>
>
>











More information about the users mailing list