Ejemplo n.º 1
0
 /**
  * Controls which process is being shown as the process active in the I/O device.
  *
  * @param p The process that is currently active, or null if the I/O device is idle.
  */
 public void setIoActive(Process p) {
   io.setActiveProcess(p);
 }
Ejemplo n.º 2
0
 /**
  * Controls which process is being shown as the process active in the CPU.
  *
  * @param p The process that is currently active, or null if the CPU is idle.
  */
 public void setCpuActive(Process p) {
   cpu.setActiveProcess(p);
 }