Lecture 1 Flashcards
ps -A
On a Linux system, displays every active process
Parent of all processes on the system
init
systemd
launchd
How is PCB implemented in linux?
As the data structure task_struct
How is PCB implemented in Darwin?
As a data structure task.
What is the most complicated data structure in the operating system?
The process block
Job queue
Set of all processes in the system
Ready queue
set of all processes in main memory, ready and waiting to execute.
Device queues
set of processes waiting for a particular I/O device
Scheduling
used to determine which process is next to get access to CPU.
How are queues implemented?
As a doubly linked list of PCBs
What are the reasons for cooperating processes? (IPC)
- Computation speedup (parallelization)
- Information sharing
- Modularity
What are the two models of IPC?
- Shared memory
2. Message passing
Example of shared memory in Unix
POSIX shared memory Unix
How does a process terminate another process?
Via a System call
TerminateProcess() in windows
abort() in Unix/Linux
How does a parent know which child to terminate?
The child id is passed to the parent when the child is created.