[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SMP system timing



Hi there


I am trying to perform some timing test using rtl 2.0 and an SMP system.
I have 4 threads each running at different rates (1,2,4,8 khz), they all
have the same priority. For now I
am putting all threads on the same CPU.

Is there a way of knowing when the slow threads are interrupted ? I have
an idea of using gethrtime() at the beginning and exit of each threads and
analyze these times to see how things get called and interrupted.

any suggestions ?


how is the scheduler work in such a situation ? does it allow the fastest
thread to interrupt the slower threads ? I have balanced the load to
ensure that I have enough CPU time to execute them all in one of their
cycles but I would like to confirm that somehow.


Thank you

Michel



---------------------------------------------
Michel Doyon, M.Eng.
Senior STVF Control Engineer
Canadian Space Agency
6767 route de l'aeroport
St-Hubert (Quebec)
J3Y 8Y9 - CANADA
Tel.:  (450) 926 4679 - Fax :  (450) 926 4695
doyon@dsm.space.gc.ca