This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
thread switch frequency
- To: "ecos-discuss at sources dot redhat dot com" <ecos-discuss at sources dot redhat dot com>
- Subject: [ECOS]thread switch frequency
- From: Andrea Acquaviva <aacquaviva at deis dot unibo dot it>
- Date: Fri, 20 Apr 2001 10:59:18 +0200
- Organization: DEIS
Hi,
I have a question about eCos mlqueue scheduler.
If there are two threads (making a matrix multiplication), running with
the same priority, they switch with a frequency given by:
f_clock/CYGNUM_KERNEL_SCHED_TIMESLICE_TICKS,
where f_clock in the case of strongarm1110 (assabet) is 3.6864MHz.
Is this correct or is there something else that affects the switching
frequency?
My question arises because I observed a mismatch between the switch time
overhead calculated by tm_basic test and the one that I measured by
evaluating the execution time of the two thread mentioned above (that
is, is much less than expected).
Thanks!
Andrea.
--
Ing. Andrea Acquaviva
D.E.I.S. - Universita' di Bologna
V.le Risorgimento, 2 40136 BOLOGNA (ITALY)
Tel: (+39) 051 20 93787 Fax: (+39) 051 2093786