6 - Operating Systems Flashcards

1
Q

What is a driver?

A

Piece of code the OS needs to communicate with a peripheral device.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Functions of the OS ?

A

Interpret and carry out commands issued by:

  • the users of the computer
  • the applications programs running on the comp
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What’s the purpose of OS?

A

– Control and operate hardware in an efficient way

– Allow the user powerful access to the facilities of the machine

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Give 2 examples of the OS in action when using a command in the console ?

A
  • ‘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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What must an OS do to accept a command from a user?

Hard

A

– 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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How often is the device asking the OS for commands ?

A

Constantly.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Other than reading commands and reaching out to the memory, what else does the OS have to do to maintain its integrity ?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the reasons for having a computer network ?

A
  • 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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Give examples of client server relationships ?

A
  • Email client like outlook communicating with a server
  • Printing
  • Web browsing via chrome/firefox/etc
  • Facebook
How well did you know this?
1
Not at all
2
3
4
5
Perfectly