100% found this document useful (1 vote)
140 views

Tutorial 4 - Answer

Polling allows the CPU to monitor when I/O devices are ready but uses CPU overhead. Device controllers are the hardware interface while device drivers are software that interact via registers. Trap functions allow programs to communicate with the OS by changing execution mode. Bootstrapping loads the OS into memory since it cannot be stored permanently due to memory volatility.

Uploaded by

Al Firdauz
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
140 views

Tutorial 4 - Answer

Polling allows the CPU to monitor when I/O devices are ready but uses CPU overhead. Device controllers are the hardware interface while device drivers are software that interact via registers. Trap functions allow programs to communicate with the OS by changing execution mode. Bootstrapping loads the OS into memory since it cannot be stored permanently due to memory volatility.

Uploaded by

Al Firdauz
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

CSC 520 - Tutorial 4

1. Give ONE (1) advantage and ONE (1) disadvantage of having polling in the computer system? (2 marks) Advantage CPU able to monitor when input/output devices are ready (data available or device is ready). Disadvantage polling instructions are part of an OS overhead. Polling is competing for CPU too.

2. What is the different between device controller and device driver? How do they interact with each other? (3 marks) Different device controller is hardware-hardware interface, device driver is a software component. Interaction by using various registers that represent meaning and both of them understand the meaning in order to coordinate their behaviour.

3. What is the main objective of a trap function? Explain how a trap instruction is executed? (3 marks) Objective to allow communication between aplication program and OS. By a software request that changes execution from user to supervisor mode.

4. Explain why a bootstrapping is needed? (2 marks) OS cannot be stored is memory forever due to its volatility, thus it is hardwired into the machine. In order for a computer to function, OS must be loaded into memory and gain supervisor mode in order to execute other instructions.

You might also like