|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcz.zcu.kiv.ppr.msloup.kernel.Scheduler
public class Scheduler
Trida sluzici k naplanovani Fiberu. Take hlida stavy a provadi pripadne zmeny stavu u fiberu.
| Constructor Summary | |
|---|---|
Scheduler(Memory memory)
Konstruktor planovace |
|
| Method Summary | |
|---|---|
protected boolean |
hasFiberAvailable()
Vraci true, pokud jsou v seznamu Fiberu jeste nejake Fibery |
protected void |
checkFibersState()
Osetruje stavy BLOCKED, SLEEPED a TORMINATED u Fiberu. |
protected Fiber |
selectFiber()
Vraci nahodne vybrany Fiber ze seznamu Fiberu, ktery je mozny spustit (je ve stavu RUNABLE). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Scheduler(Memory memory)
memory - objekt s pameti, kde je seznam Fiberu a zamku| Method Detail |
|---|
protected Fiber selectFiber()
protected void checkFibersState()
protected boolean hasFiberAvailable()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||