Process State Simulation (revision 160223-r01)

Return to Lab 03

  1. Download process status simulation files:
    wget https://projects.ui.ac.id/attachments/download/8313/ProcessState.java
    
  2. Open ProcessState.java and replace [TOKEN] with your student ID, [KELAS] with your class and [KETERANGAN] with appropriate comments (example: I totally know what this program do!)
  3. Compile the java file:
    javac ProcessState.java
    
  4. Do genInput2 command to generate the input needed for the program. Replace NPM with your student ID:
    genInput2 NPM
    


  5. Do the process status simulation. Insert the input generated above when asked. Direct the output into a file named hasil.txt:
    java ProcessState >> hasil.txt
    


  6. Now see the output resulted by accessing hasil.txt:
    cat hasil.txt
    


  7. Do this simulation three times using three input sets that had been generated.
  8. Explain what you know about ProcessState.java in WHAT-IS-THIS.txt file.

Return to Lab 03
Return to Wiki