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]
Other format: [Raw text]

Re: Tasks running at same priority level


On Fri, Oct 01, 2004 at 06:22:03AM +0000, Samie Hassan Ghauri wrote:
> When 2 threads are running in parallel and have same priority, time sharing 
> is done. But what is the granulaity in time intervals at which the context 
> switch takes place?  I mean, whether 50-50 per millisecond, or 50-50 per 10 
> millisecond???

This is controlled by CYGNUM_KERNEL_SCHED_TIMESLICE_TICKS. If you have
a default setup, it timeslices every 5 ticks, where a tick is normally
10ms. However this is all configurable....

        Andrew

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


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