Periodic thread with Linux
Jack Cawkwell
J.Cawkwell at open.ac.uk
Fri May 23 07:53:05 UTC 2003
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