Presentasi sedang didownload. Silahkan tunggu

Presentasi sedang didownload. Silahkan tunggu

1 Pertemuan 5 I/O Multiplexing Matakuliah: H0483 / Network Programming Tahun: 2005 Versi: 1.0.

Presentasi serupa


Presentasi berjudul: "1 Pertemuan 5 I/O Multiplexing Matakuliah: H0483 / Network Programming Tahun: 2005 Versi: 1.0."— Transcript presentasi:

1 1 Pertemuan 5 I/O Multiplexing Matakuliah: H0483 / Network Programming Tahun: 2005 Versi: 1.0

2 2 Learning Outcomes Pada akhir pertemuan ini, diharapkan mahasiswa akan mampu : Menghasilkan program dengan menggunakan fungsi-fungsi I/O Multiplexing

3 3 Outline Materi Select function Poll function I/O Model –Blocking I/O Model –NonBlocking I/O Model –I/O Multiplexing Model –Signal driven I/O Model –Asynchronous I/O Model

4 4 I/O Model Blocking I/O Non Blocking I/O I/O Multiplexing Signal Driven Asynchronous I/O

5 5 Blocking I/O Model

6 6 Non Blocking I/O Model

7 7 Multiplexing I/O Model

8 8 Signal Driven

9 9 Asynchronous I/O Model

10 10 TCP Echo Server Operasi I/O sinkron menyebabkan proses diblok sampai operasi I/O komplit. Operasi I/O asinkron tdk menyebabkan proses di blok Blocking, non blocking, I/O multiplexing dan signal driven I/O adalah termasuk operasi I/O sinkron.

11 11 Select () The select() system call allows us to use blocking I/O on a set of descriptors (file, socket, …). For example, we can ask select to notify us when data is available for reading on either STDIN or a TCP socket.

12 12 Contoh select () int select( int maxfd, fd_set *readset, fd_set *writeset, fd_set *excepset, const struct timeval *timeout); maxfd: highest number assigned to a descriptor. readset: set of descriptors we want to read from. writeset: set of descriptors we want to write to. excepset: set of descriptors to watch for exceptions. timeout: maximum time select should wait


Download ppt "1 Pertemuan 5 I/O Multiplexing Matakuliah: H0483 / Network Programming Tahun: 2005 Versi: 1.0."

Presentasi serupa


Iklan oleh Google