|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--Device
|
+--CPU
A CPU is a specific kind of Device. It differs from the generic device only in that there is a 1ms delay in starting a process and a 1ms delay in stopping a process. The "current job" is always null.
| Fields inherited from class Device |
currentJob,
name,
nextInterruptTime,
running,
startedAt,
totalTime,
trace |
| Constructor Summary | |
(package private) |
CPU(java.lang.String name)
Initialize the device. |
| Method Summary | |
void |
start(Job j,
int delay)
Start the CPU running a job. |
| Methods inherited from class Device |
current,
isBusy,
nextInterrupt,
printStats,
stop,
toString |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
CPU(java.lang.String name)
name - the name of the device.| Method Detail |
public void start(Job j,
int delay)
j - the job to rundelay - the time to run the job (in milliseconds). The actual time
until the completion interrupt with be Sim.SWAP_OVERHEAD longer than
this.
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||