What is a driver?
Piece of code the OS needs to communicate with a peripheral device.
Functions of the OS ?
Interpret and carry out commands issued by:
What’s the purpose of OS?
– Control and operate hardware in an efficient way
– Allow the user powerful access to the facilities of the machine
Give 2 examples of the OS in action when using a command in the console ?
What must an OS do to accept a command from a user?
Hard
– accept the input keystrokes from the keyboard (→ character codes stored somewhere → process it → pass back info → delay between typing and it returning on screen)
– interpret these keystrokes as a command; if it doesn’t understand → give back appropriate error message
– determine the location of the file containing the
code for this command
– read the appropriate blocks of memory from
(secondary storage) device into memory
– transfer control to the program being executed.
How often is the device asking the OS for commands ?
Constantly.
Other than reading commands and reaching out to the memory, what else does the OS have to do to maintain its integrity ?
Has to provide protective bubble around every program and decide whether some accesses are safe or not.
Safety mechanisms to protect against malicious programs that want to corrupt memory or data files.
What are the reasons for having a computer network ?
Give examples of client server relationships ?