public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] eCos scheduler question
@ 2002-06-06  0:38 Daniel Lidsten
  2002-06-06  5:22 ` [ECOS] eCos scheduler question 2 Jose Souto
  2002-06-07 11:13 ` [ECOS] eCos scheduler question Nick Garnett
  0 siblings, 2 replies; 3+ messages in thread
From: Daniel Lidsten @ 2002-06-06  0:38 UTC (permalink / raw)
  To: ecos-discuss

Hi,

I have a question about when the eCos (multi-level) scheduler does a
reschedule
between my application threads.
(Reschedule = Each time the kernel checks if any more priority thread
shall run
instead of the current thread)

As far as I understand, a reschedule is done when one the following
happens:
* Each RTC tick (default 100/second)
* When a message is posted, a semaphore is signalled etc.
* When returning from an ISR (even if DSR is not used)

Anyone know if this is correct?

/Regards
Daniel

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ECOS] eCos scheduler question 2
  2002-06-06  0:38 [ECOS] eCos scheduler question Daniel Lidsten
@ 2002-06-06  5:22 ` Jose Souto
  2002-06-07 11:13 ` [ECOS] eCos scheduler question Nick Garnett
  1 sibling, 0 replies; 3+ messages in thread
From: Jose Souto @ 2002-06-06  5:22 UTC (permalink / raw)
  To: ecos-discuss

Hi,

The documentation states that the tick is 10ms.
If I make it like 1ms, what impact should I expect in kernel overhead, task
switching, etc.. ?

Regards
Jose Luiz



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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ECOS] eCos scheduler question
  2002-06-06  0:38 [ECOS] eCos scheduler question Daniel Lidsten
  2002-06-06  5:22 ` [ECOS] eCos scheduler question 2 Jose Souto
@ 2002-06-07 11:13 ` Nick Garnett
  1 sibling, 0 replies; 3+ messages in thread
From: Nick Garnett @ 2002-06-07 11:13 UTC (permalink / raw)
  To: Daniel Lidsten; +Cc: ecos-discuss

"Daniel Lidsten" <Daniel.Lidsten@combitechsystems.com> writes:

> As far as I understand, a reschedule is done when one the following
> happens:
> * Each RTC tick (default 100/second)
> * When a message is posted, a semaphore is signalled etc.
> * When returning from an ISR (even if DSR is not used)
>

Note that the first case here is exactly the same as the
third. There's nothing special about RTC ticks in this regard.

> Anyone know if this is correct?
> 

It is correct. eCos has a scheduler lock which is used to protect the
scheduler's data structures. Whenever the lock is released, the kernel
looks to see if there are any better threads to run. There are
various optimizations in the unlock code to avoid doing a full
scheduling operation if it is not necessary.

-- 
Nick Garnett - eCos Kernel Architect


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-06-07 18:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-06  0:38 [ECOS] eCos scheduler question Daniel Lidsten
2002-06-06  5:22 ` [ECOS] eCos scheduler question 2 Jose Souto
2002-06-07 11:13 ` [ECOS] eCos scheduler question Nick Garnett

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).