Lab07: Revisiting Page Replacement Algorithm and Demand Paging (revision 141030-r01KI)



  1. If you need to re-check tutorials from previous labs, please access Tutorial Quick Links.


  1. Login into Lab's Ubuntu, then open Terminal.
  2. Enter your KELAS/NPM directory , then make Lab07 directory inside. For example my KELAS is TESTING and my NPM is 1202000818, replace it with your class (INT142) and student ID.
    $ mkdir -p TESTING/1202000818/
    $ cd TESTING/1202000818/
    $ mkdir Lab07
    $ cd Lab07
  3. Do the following to prepare the examination:
    $ wget
    $ chmod +x UPDATE.x
    $ ./UPDATE.x
    $ rm -f UPDATE.x
  4. Open new Tab for Terminal with <Ctrl> <Shift> <t>
  5. Do the following and input your SIAK's password if asked.
  6. Get your token for your work today.


  1. Please create "catat-Lab07.txt" with contents:

    Change [KELAS] with your class, [TANGGAL] with today's date with format DD-MM-YY, [TOKEN] with your token, and [KETERANGAN] with short explanation.
    ZCZC TESTING TGS LAB07 31-10-2014
    ZCZC NO4LAY LOG Final Test is getting closer, yay!!
  2. Record all output in your tutorial.
    $ script -a catat-Lab07.txt
  3. Listen to the Tutorial about Page Replacement Algorithm and Demand Paging.
  4. Do the Just For Fun: Networking tutorial.
  5. Stop recording output on all Terminal windows.
    $ exit

Examination and Submission

  1. Execute genbio script
    $ genbio
  2. Do md5sum Tutorial.
  3. Do Examination Tutorial.
  4. Exit from Lab07 directory, then create a file named KELAS-NPM-Lab07.tar.bz2 contains Lab07 directory and its content. For example my KELAS is TESTING and my NPM is 1202000818, change with your KELAS (REG142, EXT142, INT142) and your student ID.
    $ cd ..
    $ tar cvjf TESTING-1202000818-Lab07.tar.bz2 Lab07/
  5. Do Assignment Submission in Scele to submit your compressed archive contains:
    1. myself.txt
    2. client.c
    3. client
    4. server.c
    5. server
    6. clientserver.c
    7. clientserver
    8. Makefile
    9. catat-Lab08.txt
    10. MD5SUM
    11. MD5SUM.asc
    12. .periksa
  6. This marks the end of the tutorial today.