OS Structures Flashcards
OS Services for users are:
- UI
- Program execution
- I/O operations
- File-system manipulation
- Process communication
- Error detection and handling
OS Services for the system are:
efficiency and sharing
- Resource allocation
- Accounting
- Protection and security
Give two examples to User-OS interfaces
- CLI (Command Line Interpreter) (shell)
- GUI
What is the programming interface to the services provided by the operating system called?
System calls
System calls are written in…
a high level language (C, C++)
System calls are called by…
running a program to get service from kernel
Describe the process of calling a system call
The number associated with the system call is used as an index to find the address of the corresponding system call from the system call table. The system call in the address runs and returns.
What are the three methods to pass parameters to the OS for system calls?
1) Simplest: pass parameters in registers
2) Store in a block or a table and pass address of block in a register
3) Parameters pushed to the stack by the program and popped off by the OS
Last two do not limit the num of parameters passed
System calls are accessed directly by programs. True of False?
False. System calls are NOT accessed directly by programs. They’re accessed by programs VIA a high-level API rather than direct system call use.
Name 6 types of system calls.
- Process control
- File management
- Device management
- Information maintenance
- Communications
- Protection
Name 4 different operating system structures.
- Simple Structure (MSDOS)
- Layered
- Microkernel
- Modules
MSDOS provides…
most functionality in the least amount of space
MSDOS is divided into modules. True or False?
False. Although it has some structure, its interfaces and levels of functionality are not well separated.
Describe the Layered Approach.
OS is divided into layers. Lowest being hardware and highest being the user interface. Each layer only uses services of lower layers.
Give an example of a Layered OS and its layers.
UNIX. Hardware-Kernel-Application Programs
Also, Linux.