This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Thread execution time
- From: Andrew Lunn <andrew dot lunn at ascom dot ch>
- To: Michele Portolan <michele dot Portolan at imag dot fr>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Thu, 28 Aug 2003 11:38:09 +0200
- Subject: Re: [ECOS] Thread execution time
- References: <006501c36d41$f7f5f8a0$7b81ab93@imag.fr>
On Thu, Aug 28, 2003 at 10:54:19AM +0200, Michele Portolan wrote:
> Hi,
> how can I know the time quantum left by eCos to a thread, i.e. the time
> between two context switches?
Im not sure i understand what you mean. Do you mean how long does a
thread run before it is round robin time sliced by another thread at
the same priority? By default a thread runs for five ticks. Its
controlled by CYGNUM_KERNEL_SCHED_TIMESLICE_TICKS.
> Is there also a way to estimate the time needed by "load context" only and
> not complete context switch?
What exactly are you trying to work out? What is the reason behind these
questions.
Andrew
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss