This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Is clock interrupt = tick ?


[ Is clock interrupt = tick? ]

It may depend on your terminology. Most hardware clocks have an internal
counter, often a resetting decrementer which you program to trigger an
interrupt when it hits zero.

It's up to you whether you consider the change in the value of the
decrementer to be a tick, or the clock interrupt to be a tick. My
preference is for the latter, and I think that is definitely the most
common usage. So in short, yes :-).

But note that kernel timeslicing doesn't take place every clock interrupt -
it actually happens according to the eCos CDL option 
CYGNUM_KERNEL_SCHED_TIMESLICE_TICKS, which defaults to 5 ticks between
reschedules.

Jifl


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]