1 / 3

Disabling Interupt

Disabling Interupt. Fajar A P (1002405) Hafidz Dali (1002345) Muhammad Yuziandhi A (1006514) Riska Apriani (1000787 ). Let’s Start. Perkenalan Tugas Sistem Operasi Dosen Jajang Kusnendar, M.T. Disabling Interrupts. Pengertian

pules
Download Presentation

Disabling Interupt

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. Disabling Interupt Fajar A P (1002405) Hafidz Dali (1002345) Muhammad Yuziandhi A (1006514) Riska Apriani (1000787) Let’s Start Perkenalan Tugas Sistem Operasi Dosen Jajang Kusnendar, M.T

  2. Disabling Interrupts Pengertian Disabling Interuptsadalahmenghentikaninterupsisehingga proses lain tidakbisamengganggu proses yang sedangberlangsung Pseudo-Code (algorithm) while (true) { /* disable interrupts */; /* critical section */; /* enable interrupts */; /* remainder */; } Pseudo-Code Interrupt Disable/Enable Pattern • class Lock{ int value = FREE; • } • Lock::Acquire(){ Disable interrupts; while (value != FREE){ Enable interrupts; // allow interrupts Disable interrupts; } value = BUSY; Enable interrupts; • } • Lock::Release(){ Disable interrupts; value = FREE; Enable Interrupts; • } 2

  3. Start Tutorial Interrupt disable/enable pattern Tread Mutually Exclusive P1 Resource Critical Section P2 Proses Berlangsung Critical Section Dimanasebuah proses memilikibagiandimanabagianiniakanmelakukanaksesdanmanipulasi data Mutually Exclusive Keadaandimanamemungkinkanterjadinyaakseskeresources yang samadalamwaktu yang sama Interrupt Disable Keadaansaat Interrupt Disable aktifmaka proses yang lain tidakbolehmengganggu P3 P4 On Off P5 Status :

More Related