Selasa, 05 Januari 2010

polling vs interupt-driven

• When the I/O device is ready to respond, it can send an
interrupt to the CPU; the CPU stops what it was doing;
the OS examines the interrupt and then reads the data
produced by the I/O device (and usually stores into memory)
• In the polling approach, the CPU (OS) periodically checks
the status of the I/O device and if the device is ready with
data, the OS reads it

• Bila I / O device yang siap untuk merespon, hal itu dapat mengirim
interupsi ke CPU CPU berhenti apa yang dilakukannya;
OS memeriksa menyela dan kemudian membaca data
diproduksi oleh I / O device (dan biasanya toko ke memori)
• Pada pendekatan pemungutan suara, CPU (OS) secara berkala memeriksa
status I / O device dan jika perangkat sudah siap dengan
data, OS membacanya

Tidak ada komentar:

Posting Komentar