1 / 16

Simulasi Mutual Exclusion dengan Variabel Lock Tugas Sistem Operasi Dosen : Jajang Kusnendar, M.T

Simulasi Mutual Exclusion dengan Variabel Lock Tugas Sistem Operasi Dosen : Jajang Kusnendar, M.T. Kiki Husni Kamil (0905789) Fera Rika Rahmatika (1003087) Ari Hartiningsih (1006337) Rubi Cahya Ramadhan (1002305) Ichsan Ramadhan Triesaputra (1002541). A. critical section. s tatus lock = 0.

lev
Download Presentation

Simulasi Mutual Exclusion dengan Variabel Lock Tugas Sistem Operasi Dosen : Jajang Kusnendar, M.T

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Simulasi Mutual Exclusiondengan Variabel LockTugas Sistem OperasiDosen :Jajang Kusnendar, M.T Kiki Husni Kamil (0905789) Fera Rika Rahmatika (1003087) Ari Hartiningsih (1006337) Rubi Cahya Ramadhan (1002305) Ichsan Ramadhan Triesaputra (1002541)

  2. A critical section status lock = 0 Proses A dalam keadaan ready, dan melihat status lock = 0.

  3. A critical section status lock = 1 Proses A langsung masuk atau diproses di critical section, sehingga status lock yang tadinya 0 berubah menjadi 1.

  4. B critical section status lock = 1 A Proses A masih diproses (running), proses B dalam keadaan ready, dan melihat status lock = 1, maka proses B menunggu (waiting) masuk critical section.

  5. B critical section status lock = 0 A Proses A selesai diproses, maka status lock = 0.

  6. B critical section status lock = 1 A Proses B masuk critical section , makastatus lock berubah yang tadinya 0 menjadi 1.

  7. C critical section status lock = 1 B A Proses B masih diproses (running), maka status lock = 1, kemudian proses C masuk dalam keadaan ready, karena melihat status lock = 1, maka proses C menunggu (waiting).

  8. D C critical section status lock = 1 B A Proses B masihdiproses, danprosesC masihmenunggu (waiting). Masuk lagi proses D, karena melihat proses C mengantri, maka proses D mengantri di belakang proses C.

  9. D C critical section status lock = 0 B A Proses B selesai diproses, maka status lock berubah dari 1 menjadi 0.

  10. D C critical section status lock = 1 B A Proses C masuk dalam critical section, dan status lock berubahmenjadi 1. Proses D tetap menunggu (waiting)sampaiproses C selesai.

  11. E D critical section status lock = 0 C B A Proses C selesai diproses, maka status lock = 0.

  12. E D critical section status lock = 1 C B A Proses C selesai diprosesdan status lock = 0, kemudian proses E masukdan proses D masuk ke dalamcritical section (karenadatang terlebih dahuludaripadaproses E) sehingga status lock berubahdari 0 menjadi 1.

  13. E critical section status lock = 0 D C B A Proses D selesaidiproses, maka status lock = 0.

  14. E critical section status lock = 1 D C B A Proses E masuk ke critical section, maka status lock = 1.

  15. critical section status lock = 0 E D C B A Proses E selesai diproses, maka status lock = 0.

More Related