This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

is nano sleep is realtime waken up


Hai,
    The nanosleep API provided by the eCos is realtime. i mean if i want
to sleep for 50 milli seconds whether it will sleep exactly 50 milli
seconds irrespective of the load on the CPU.
    i am facing small problem with this sleep.
the problem is

1. i am creating one thread(POSIX created with pthread) with the priority
16( avcerage priority) and sleeping for 50 milli seconds

2. parllely i have created 10 other threads (this is also POSIX) with the
pririty of 31 (low)which will do following thing (without any sleep)
    while(1);

3. the Sleeping thread is waken up after around 600 milli seconds.

    please suggest me any options/settings will give good results to me

Thanks Regards
Gntpl

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]