6 - Operating Systems Flashcards
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:
- the users of the computer
- the applications programs running on the comp
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 ?
- ‘javac MyProgram.java’ → the java program needs to be in the memory → javac is loaded into the main memory from the disk by the OS
- ‘ls’ → needs information on the files in the current directory → OS makes requests to the appropriate system code
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 ?
- Increase computing power
- Increase system reliability by providing redundant processing
- Share data through network
- Share valuable resources
- To organize convenient interactions of users working at their own computers, often in different locations
Give examples of client server relationships ?
- Email client like outlook communicating with a server
- Printing
- Web browsing via chrome/firefox/etc