public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] is nano sleep is realtime waken up
@ 2004-06-09  7:51 gntpl
  0 siblings, 0 replies; only message in thread
From: gntpl @ 2004-06-09  7:51 UTC (permalink / raw)
  To: ecos-discuss

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-06-09  7:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-09  7:51 [ECOS] is nano sleep is realtime waken up gntpl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).