CS代考 COMP 3430 Operating Systems

COMP 3430 Operating Systems
I/O devices
March 9th, 2022

Copyright By PowCoder代写 加微信 powcoder

By the end of today’s lecture, you should be able to:
▶ Explain how an operating system provides an abstraction around hardware devices.
▶ Compare and contrast I/O scheduling policies and process scheduling policies.
The Rocket Book (Public Domain)

Let’s take a look at the course schedule.

Implement an interface
Let’s “implement” an interface for a webcam. Remember: devices are files. “Everything” is a file.
My whole life is a file. (Pixabay License)

Everyone, answer in chat: what system calls operate on files?

Teams: What should a webcam do when you call file system calls on it?
▶ open ▶ read ▶ write ▶ close ▶ lseek

Alternative approaches
▶ Everything is a file in UNIX/Linux (mostly).
▶ Windows?
▶ Specific OS-level APIs for devices.

▶ Operating systems hide device details from software. ▶ Different operating systems do it differently.
▶ I/O operations can be scheduled similarly to processes.

程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com