Lecture 3: OS Structure Flashcards

1
Q

6 functions of OS for user

A
  • user interface
  • program execution
  • file-system manipulation
  • I/O operations
  • communications
  • error detections
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

3 functions of OS for system

A
  • accounting
  • protection and security
  • resource allocation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

define security

A

require user authentication to defense external I/O devices from invalid access attempts

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

define protection

A

to control access of system resources

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

Command Line Interface (CLI)

A

allows direct command entry
- primarily fetch a command in users and execute it

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

Graphic User Interface (GUI)

A

user-friendly desktop metaphor interface
- icons represent files, program and action

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

3 general methods to pass parameters to OS

A
  • in register
  • block method (parameter store in block in memory, and the address of block passed as a parameter in register)
  • stack method (parameter placed onto a stack and popped off)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

5 types of system call

A
  • process control (end, execute, wait event)
  • file management (open, close, create, delete)
  • device management (read, write, request, release)
  • information maintenance (get and set date, time)
  • communication (send and receive message, create and delete connection)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

define system programs

A

provide a convenient environment for program development and execution

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

6 division of system programs

A
  • file manipulation
  • file modification
  • status information
  • communications
  • programming language and support
  • program loading and execution
  • application program
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

file manipulation

A

manipulate files and directories
- create, delete, copy, rename

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

file modification

A
  • text editors to create and modify files
  • special command to search content of files
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

status information

A
  • ask system for information
  • provide detailed performance, logging and debugging
  • format and print the output to the terminal
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

communications

A

to create virtual connections among processes, user, and computer system
- send message to other’s screen
- browse web

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

program loading and execution

A
  • absolute loader, reallocate loader, linkage editor, debugging system
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

programming language and support

A
  • provide compiler, assembler, debugger and interpreters
17
Q

2 goals in designing and implementing OS

A

User goals
- easy to learn, convenient to use, reliable, fast and safe

system goals
- easy to design, implement and maintain
- flexible, reliable, error-free, efficient

18
Q

how microkernel system structure works

A

move as much from kernel space to user space
- communication take place between user modules using message passing

19
Q

benefits of microkernel system structure

A
  • easier to extend the microkernel
  • easier to port the OS to new architecture
  • more reliable as less code is store in kernel
  • more secure
20
Q

disadvantages of microkernel system structure

A

performance may overhead the user space and kernel space communication

21
Q

virtual machines

A
  • using layered approach
  • treat both hardware and software as all hardware
  • provide interfaces indentical to underlying hardware
  • create illlusion that all process has its own processers and virtual memory
22
Q

why virtualisation is hard to implement

A
  • exact duplication of underlying machine is needed
  • typically run in user modes
  • timing is slower than real machine
  • hardware support needed
23
Q

benefits of virtual machine

A
  • file sharing can be controlled and permitted
  • multiple execution environment can share the same hardware
  • protected from each other
  • allow communication with each other via networking
  • consolidation of low-resource used program into fewer busier system
24
Q
A