Processes and Threads Flashcards
Experiment 1
What does POSIX mean?
Portable Operating System Interface for Unix.
What is an executable program?
In an operating system, it is one or several processes.
What is a trace?
It is the sequence of instructions within a process is represented.
What is a dispatcher?
It is an operating system process that selects the processes for execution.
What happens when a new process is created?
The operating system creates the necessary data structures for managing the processes and assigns an address space in the main memory.
What is the meaning of the ready state of a process?
It means that the process is waiting to be executed.
What is the meaning of the running state of a process?
It is running/executing in fact.
What is the meaning of the blocked state of a process?
A process is on this state when it is waiting for a specific operation (I/O, shared resource).
What is the meaning of exit state of a process?
Is the state of a terminated process.
What should be done when a process goes to the exit state?
It is necessary to delete the process information (if no longer needed) and maybe store the results into the main memory (if it is not done).
What could be the reasons for a process to terminate?
(INETO)
- Insufficient memory
- Normal termination
- Exceeding given time limit by the dispatcher
- Termination of/by parent process
- Operating System intervention
Where is the context of a process contained?
A context of a process is contained within the process image.
What does the process image contain?
(UP P UD SS) User Program Process Control Block User Data System Stack
What is the process control block (PCB)?
PCB contains the necessary data to control the process.
What is the process control block (PCB) composed by?
The process control block (PCB) is composed of: 1. the PID 2. the processor state information 3. the process control information (PID PSI PCI)
What does processor state information contain?
Processor state information (PSI) contains register contents control register status register stack pointers
What does the process control information contains?
scheduling and state information
data structures (pointers to other process - child, parent, queues)
inter-process communication (signals, flags, messages pointer)
privileges (memory or use of auxiliary systems)
memory management (pointers)
resources
What is a user program?
Sequence of instructions for execution.
What is user data?
It is the modifiable part of the user space.