|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
cz.zcu.kiv.ppr.msloup.kernel.CPU
public class CPU
Trida reprezentujici Procesor
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
Thread.State, Thread.UncaughtExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
CPU(Scheduler scheduler,
SysCall sysCall)
Konstruktor CPU |
|
| Method Summary | |
|---|---|
protected static CPU |
currentCPU()
Vraci referenci na aktualni bezici CPU. |
protected int |
getCPUID()
Vraci jednoznacny identifikator CPU |
protected Fiber |
getFiber()
Vraci Fiber, ktery bezi na tomto CPU |
static long |
milisTime()
Vraci aktualni cas v milisekundach. |
void |
run()
Hlavni metoda behu CPU |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, checkAccess, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CPU(Scheduler scheduler,
SysCall sysCall)
scheduler - objekt planovace vlakensysCall - objekt systemovych volani uzivanych ve Fiberech| Method Detail |
|---|
public void run()
run in interface Runnablerun in class Threadprotected int getCPUID()
protected Fiber getFiber()
protected static CPU currentCPU()
public static long milisTime()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||