Process Status Simulation (revision 140923-r01KI)

Return to Lab 03

  1. Download process status simulation files:
    wget https://projects.ui.ac.id/attachments/download/7817/ProcessState.java
    
  2. Open ProcessState.java and replace NPM with your student ID, [TOKEN] with this week's token, [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. Create a file named WHAT-IS-THIS.txt and explain what you know about ProcessState.java

Return to Lab 03
Return to Wiki