OS Services Flashcards
IPC
Inter-Process-Communication: Communication between running processes. Anything from pipes, unix sockets and network sockets count as IPC.
Kill system call
Send a certain process a signal with a certain code. Can be overwritten when written in c/c++ to do whatever you want.
System call parameter passing (3 ways)
- Using registers.
- Save the parameter in memory and pass the location using a register.
- Push onto the stack and have the OS pop from it.
System programs
Programs provided by the OS to appeal more to human usage and not have the user use system calls for everything. Includes text editors, programming language support and more.
6 Layers of OS
1: Hardware.
2: CPU Scheduling
3: Memory Management.
4: Process Management.
5: I/O Buffer.
6. User Programs.
OS Modules
Each core component is separate and can be loaded when needed withing the kernel. The modules communicate through known interfaces.
Virtual machine
An OS that thinks it has its own hardware but actually is running through a hypervisor that is emulating the hardware.
Hypervisor (2 types)
- Runs directly on the hardware itself and just manages and forwards the requests of the VMs it is hosting.
- Runs ontop of another OS, doesn’t directly communicate with the hardware but does so through the OS it is sitting on.