assembly kod
HWSW Famulus
hwsw at famulus.hu
Mon Oct 20 22:59:57 CEST 2003
> Utemezni meg a timecritical azaz 31-es prioritasu szala(ka)t is utemezni
> kell
> Ettol preemptive egy oprendszer!!!!!!
>
> Vagyis nem a futo szal dont mikor engedi el a CPU-t,
> (ilyen volt valaha pl. 3.1-es win) hanem az utemezo mindig
> elveszi amikor az idokvantum lejar.....
pontosabban: mindig elveszi legkesobb!!! amikor az ido kvantum lejar.
mert akkor is ujra utemez, ha az eppen futo szal varakozni kenyszerul vagy,
ha
egy masik varokozo szalnak veget ert a varakozasa,
hatha mostmar az a magasabb prioritasu jelszoval?
Ezen utemezeseknel pedig bizony akar egy legkissebb prioritasu szal is
megnyerheti
a versenyt es futhat egy pillanatig.......akar tetszik, akar nem tetszik ez
neked.
> aztan legfeljebb visszadja, ha nincs jobb otlete :-)
>
> ---------------------------------------
> The scheduler must make !!!!!! a CPU scheduling decision every
time!!!!!!!!
> one of three
> situations occurs:
>
> * A thread's quantum on the CPU expires.
> * A thread waits for an event to occur.
> * A thread becomes ready to execute.
>
> When a thread's quantum expires, the scheduler executes the
FindReadyThread
> algorithm to decide whether another thread needs to take over the CPU. If
a
> higher-priority thread is ready to execute, it replaces (or preempts) the
> thread that was running.
> --------------------------
>
> KJ
More information about the Elektro
mailing list