1 Pertemuan 5 Komunikasi antar Proses / Interprocess Communication (IPC) Matakuliah: T0316/sistem Operasi Tahun: 2005 Versi/Revisi: 5 OFFCLASS01.

Slides:



Advertisements
Presentasi serupa
Tim Teaching Grant Mata Kuliah Sistem Operasi
Advertisements

SINKRONISASI Pertemuan 5.
MANAJEMEN PROSES.
1 Algoritma Bahasa Pemrograman dan Bab 1.1. Pengertian Algoritma.
Sistem Operasi (Operating Systems) Minggu 5
2. Introduction to Algorithm and Programming
Pertemuan 4 Manajemen Proses 2.
Learning Medium School : SMPN 1 Gotham City Subject : English
Sinkronisasi Proses Catur Iswahyudi.
Masalah Klasik Komunikasi Antar Proses
SINKRONISASI DAN DEADLOCK
CONCURENCY CONTROL DISTRIBUTED DATABASE. M AIN TOPICS Transaction managements Centralized database Distributed database Consistency control Centralized.
INTERPROCESS COMMUNICATION
Lecture 5 Nonblocking I/O and Multiplexing Erick Pranata © Sekolah Tinggi Teknik Surabaya 1.
1 Pertemuan 1 Introduction Matakuliah: sistem Operasi Tahun: 2010.
Pertemuan 6 Server dengan Multi Thread pada Linux
Sistem Operasi (Operating Systems) Minggu 4
1 Pertemuan 10: Know more about AIDS Matakuliah: G0942/Listening 1 Tahun: 2005 Versi: baru.
1 Pertemuan 17 Input / Output Matakuliah: T0316/sistem Operasi Tahun: 2005 Versi/Revisi: 5.
MUTUAL EXCLUSION.
Menulis Kolom  Kolom adalah opini atau artikel. Tidak seperti editorial, kolom memiliki byline.  Kolom Biasanya ditulis reguler. Biasanya mingguan atau.
1 Pertemuan 4 Types of Questions Matakuliah: G0942/Listening 1 Tahun: 2005 Versi: baru.
1 Pertemuan 12 Pengkodean & Implementasi Matakuliah: T0234 / Sistem Informasi Geografis Tahun: 2005 Versi: 01/revisi 1.
SINKRONISASI DAN DEADLOCK
Masalah Transportasi II (Transportation Problem II)
1 Pertemuan 10 Fungsi Kepekatan Khusus Matakuliah: I0134 – Metode Statistika Tahun: 2007.
T0542 / INTERPROCESS COMMUNICATION Permasalahan: Penyampaian informasi antar proses Pengaturan proses agar tidak saling menghalangi Proper sequencing.
Verb Tense Tense denotes the time of the action indicated by a verb. The time is not always the same as that indicated by the name of the tense.
1 Pertemuan 6: Insect Matakuliah: G0942/Listening 1 Tahun: 2005 Versi: baru.
1 Pertemuan 2 Unit 1 - Careers Matakuliah: G0682 / Bahasa Inggris Ekonomi 1 Tahun: 2005 Versi: versi/revisi.
1 Pertemuan 15 Modelling Page Replacement Algorithm Matakuliah: T0316/sistem Operasi Tahun: 2005 Versi/Revisi: 5.
1 Pertemuan 8 JARINGAN COMPETITIVE Matakuliah: H0434/Jaringan Syaraf Tiruan Tahun: 2005 Versi: 1.
1 Pertemuan 11 The Manipulative part of the object data model (Lanjutan bagian 2) Matakuliah: M0174/OBJECT ORIENTED DATABASE Tahun: 2005 Versi: 1/0.
1 Minggu 10, Pertemuan 20 Normalization (cont.) Matakuliah: T0206-Sistem Basisdata Tahun: 2005 Versi: 1.0/0.0.
1 Pertemuan > > Matakuliah: >/ > Tahun: > Versi: >
1 Pertemuan 8 Phrasal Verbs & Prefixes Matakuliah: G0134/Grammar III Tahun: 2005 Versi: revisi 1.
1 Pertemuan 13 Algoritma Pergantian Page Matakuliah: T0316/sistem Operasi Tahun: 2005 Versi/Revisi: 5.
1 Pertemuan 6 Komunikasi antar Proses (IPC) Lanjutan Matakuliah: T0316/sistem Operasi Tahun: 2005 Versi/Revisi: 5 OFFCLASS01.
1 Pertemuan 12 WIDROW HOFF LEARNING Matakuliah: H0434/Jaringan Syaraf Tiruan Tahun: 2005 Versi: 1.
Pertemuan 14 Algoritma Pergantian Page (lanjutan)
9.3 Geometric Sequences and Series. Objective To find specified terms and the common ratio in a geometric sequence. To find the partial sum of a geometric.
Cursor MI2163 Dasar Pemrograman Basis Data. Introduction Cursor merupakan suatu variabel yang digunakan untuk menampung hasil query yang terdiri atas.
Pendekatan & Kategori Iklan Pertemuan 2
PROSES BAB 2 By Abdul Kadir.
KOMUNIKASI DATA Materi Pertemuan 3.
Pertemuan 23 Sequence Diagram
Processes Process Model Process Hierarchies
“Sinkronisasi Proses”
Pengujian Hipotesis (I) Pertemuan 11
PROSES DAN MANAJEMEN PROSES (1)
Kantor sebagai Pusat Informasi dan Komunikasi
BY EKA ANDRIANI NOVALIA RIZKANISA VELA DESTINA
Pertemuan VI MAPPING FUNCTION.
Introduction to Sociology
Sistem Operasi: Proses
English Teaching Material for fifth grade students
Fungsi Kepekatan Peluang Khusus Pertemuan 10
How to Set Up AT&T on MS Outlook ATT is a multinational company headquartered in Texas. ATT services are used by many people widely across.
How Can I Be A Driver of The Month as I Am Working for Uber?
Things You Need to Know Before Running on the Beach.
Don’t Forget to Avail the Timely Offers with Uber
Describing process how something is made or done.
THE INFORMATION ABOUT HEALTH INSURANCE IN AUSTRALIA.
Lesson 2-1 Conditional Statements 1 Lesson 2-1 Conditional Statements.
HughesNet was founded in 1971 and it is headquartered in Germantown, Maryland. It is a provider of satellite-based communications services. Hughesnet.
Fix problems opening Norton  Fix problems opening Norton This problem can happen after you update Norton. To fix the matter, restart the computer. Fix.
Rank Your Ideas The next step is to rank and compare your three high- potential ideas. Rank each one on the three qualities of feasibility, persuasion,
Draw a picture that shows where the knife, fork, spoon, and napkin are placed in a table setting.
2. Discussion TASK 1. WORK IN PAIRS Ask your partner. Then, in turn your friend asks you A. what kinds of product are there? B. why do people want to.
Wednesday/ September,  There are lots of problems with trade ◦ There may be some ways that some governments can make things better by intervening.
Transcript presentasi:

1 Pertemuan 5 Komunikasi antar Proses / Interprocess Communication (IPC) Matakuliah: T0316/sistem Operasi Tahun: 2005 Versi/Revisi: 5 OFFCLASS01

2 Learning Outcomes Pada akhir pertemuan ini, diharapkan mahasiswa akan mampu : menjelaskan perlunya komunikasi antar process, dan menerangkan beberapa mekanisme untuk berkomunikasi (C2)

3 Outline Materi Race Condition Critical Region Mutual Exclusion with busy waiting –Disabling interrupts –Lock variables –Strict Alternation –Peterson’s solution –TSL Instruction Sleep and wakeup

4 Problems - Passing information between process - Making sure two or more processes do not get into each other’s way - Proper sequencing when dependencies are present Interprocess Communication RACE CONDITION Situation where two or more processes are reading or writing some shared data and the final result depends on who runs precisely when

5 Examples : spooler directory for printer Two processes want to access shared memory at same time

6 spooler (2) Process A Reads in = 7 Store local_next_slot = 7 Reads local_next_slot = 7 Store buffer[7] = A Update in = 8 Process B Reads in = 7 Store local_next_slot = 7 Store buffer[7] = B Update in = 8 B will never receive any output

7 Critical Regions Four conditions to provide mutual exclusion 1.No two processes simultaneously in critical region 2.No assumptions made about speeds or numbers of CPUs 3.No process running outside its critical region may block another process 4.No process must wait forever to enter its critical region Mutual Exclusion:  mechanism to prevent process accessing resource used by another process Part of the programs in which the shared memory is accessed

8 Mutual exclusion using critical regions

9 1. Disabling Interrupt  Each process disable all interrupts just after entering its critical regions and re-enable them just before leaving it but, disabling interrupt shall not be carried out by user process Mutual Exclusion with Busy Waiting

10 2. Lock Variables  Shared (lock) variables, initially set to 0  If lock = 0, lock is set to = 1, then enters the critial region  If lock = 1, wait until lock = 0 problem: race condition

11 3. Strict Alternation (a) Process 0. (b) Process 1.

12 4. Peterson’s Solution

13 5. TSL Instruction (Test and Set Lock) Note: Peterson and TSL are correct bur requires busy waiting Initially lock = 0  JNE = false  just RET

14 Sleep:system call yang menyebabkan proses yang memanggil diblock, atau ditunda (suspended) Wakup:system call yang menyebabkan proses dibangunkan, atau menjadi ready Sleep and Wakeup Case: Producer-Consumer Problem (Bounded-Buffer Problem)

15 Example of producer- consumer problem with fatal race condition