|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--CPU
Field Summary | |
Clock |
BigBen
|
Queue |
FIFO
|
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Method Summary | |
float |
execute()
Take out the process which is being run and get the next process from the queue |
float |
getCompletion()
Accesor method to read the mean completion time |
float |
getOverhead()
Accesor method to read the context-switch overhead |
int |
getQuantum()
Accesor method to read the quantum |
void |
pause()
Pause the execution of the CPU |
void |
restart()
Restart the execution of the CPU, set all attributes with the default values |
void |
run()
Call execute method and sleep |
static void |
setOverhead(float newOverhead)
Accesor method to modify the context-switch overhead |
static void |
setQuantum(float q)
Accesor method to modify the quantum |
void |
turnoff()
Stop the execution of the CPU |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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 |
Field Detail |
public Queue FIFO
public Clock BigBen
Method Detail |
public int getQuantum()
public static void setQuantum(float q)
q
- float the quantum new valuepublic float getOverhead()
public static void setOverhead(float newOverhead)
newOverhead
- float the new Overheadpublic float getCompletion()
public float execute()
public void restart()
public void pause()
public void turnoff()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |