Re: Multicores
- From: "robertwessel2@xxxxxxxxx" <robertwessel2@xxxxxxxxx>
- Date: 8 Sep 2005 10:01:12 -0700
Skybuck Flying wrote:
> > In short, time slice intervals have only a little to do with system
> > responsiveness.
>
> That's where you are 100% wrong, it has everything to do with system
> responsiveness.
>
> 1. Give an application a higher priority and it's threads will get a longer
> time slice.
> 2. Give an application a lower priority and it's threads will get a shorter
> time slice.
>
> That's why 1. lags the system when an application gets to much time.
> That's why 2. makes an application take very long to complete it's task.
Of course that's not anything like the way it actually works. If two
threads, one high and one low priority, are ready to run, the high
priority thread will be dispatched, and time slices have nothing to do
with it. In the basic case a runnable high priority thread will
prevent all low priority threads from running, period. If two threads
of equal priority are both runnable, then, and only then, will time
slices come into play to switch between those equal priority threads.
That being said, many OSs will apply a dynamic temporary priority boost
to lower priority threads if they've not been allowed to run for an
extended period of time so that they're not starved of CPU time
completely. And there are, of course, more complex schedulers that
work not just on thread priority, but take into account system policies
that say things like "guarantee at least 15 % of the CPU to job#3."
Those often work by watching the run history and adjusting a more
traditional priority scheme to meet the goals.
.
- Follow-Ups:
- Re: Multicores
- From: Skybuck Flying
- Re: Multicores
- References:
- Multicores
- From: Raven8712
- Re: Multicores
- From: Skybuck Flying
- Re: Multicores
- From: robertwessel2@xxxxxxxxx
- Re: Multicores
- From: Skybuck Flying
- Re: Multicores
- From: robertwessel2@xxxxxxxxx
- Re: Multicores
- From: Skybuck Flying
- Multicores
- Prev by Date: Re: Not enough parallelism in programming
- Next by Date: Re: Not enough parallelism in programming
- Previous by thread: Re: Multicores
- Next by thread: Re: Multicores
- Index(es):
Relevant Pages
|