This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Tasks running at same priority level
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Samie Hassan Ghauri <samiehg at hotmail dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Fri, 1 Oct 2004 09:16:48 +0200
- Subject: Re: [ECOS] Tasks running at same priority level
- References: <BAY12-F9PZrIkyPzGNs00000101@hotmail.com>
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