Module 2 Flashcards
A _______ is a program in execution.
Process
True or False.
A program is an active entity while a process is a passive entity.
False
(a program is a PASSIVE entity while a process is an ACTIVE entity)
True or False.
A computer system consists of a collection of processes.
True
True or False.
User processes execute system code. Operating system processes execute user code.
False
(OPERATING SYSTEM processes execute SYSTEM code, USER processes execute USER code)
True or False.
Several processes within different programs are considered separate execution sequences.
False
(several processes within THE SAME program)
True or False.
All processes can execute concurrently with the CPU multiplexing among them (time sharing).
True
A ________ is a cycle of CPU execution (CPU burst) and I/O wait (I/O burst) that alternates between these two states.
Process
True or False.
Process execution begins with an I/O burst then a CPU burst and so on.
False
(begins with a CPU BURST then an I/O BURST)
The last CPU burst will end with a ___________ to terminate execution.
System Request
_______- are written and becomes a process when executed/loaded into memory.
Programs
A process can be divided into four sections. What are these sections?
(SHT Damn)
- Stack
- Heap
- Text
- Data
This section contains the temporary data such as function parameters, return address and local variables.
Stack
This section is dynamically allocated memory to a process during its run time.
Heap
(dynamically allocated memory)
This section includes the current activity represented by the value of Program Counter and the contents of the processor’s registers.
Text
This section contains the the code.
Text
This section contains the global and static variables.
Data
True or False.
As a process executes, it changes states.
True
In this state, the process is being created.
New
In this state, the process is waiting for the OS to assign a processor to it.
Ready
In this state, the process has finished execution.
Terminated
Each process is represented in the operating system by a ________________.
Process Control Block (PCB)
In this state, the process is waiting for some event to occur (such as an I/O completion).
Waiting
In this state, the CPU is executing its instructions.
Running
This is also known as a task control block.
Process Control Block (PCB)
It is the repository of information of a process.
Process Control Block (PCB)
What are the parts of the process control block?
- Process State
- Program Counter
- CPU Registers
- CPU Scheduling Information
- Memory Management Information
- Accounting Information
- I/O Status Information
This part of the process control block indicates the address of the next instruction to be executed.
Program Counter
This part of the process control block include accumulators, index registers, stack pointers, and general-purpose registers, plus any condition-code information.
CPU Registers
This part of the process control block process priority, pointers to scheduling queues, and scheduling parameters.
CPU Scheduling Information
This part of the process control block along with the program counter, must be saved when an interrupt occurs to allow the process to continue.
CPU Registers
This part of the process control block contains information on limits registers or page tables.
Memory Management Information
This part of the process control block contains the amount of CPU and real time used, time limits, account numbers, job or process numbers.
Accounting Information
This part of the process control block contains the I/O requests, I/O devices allocated, a list of open files.
I/O Status Information
True or False.
The processes in the system cannot execute concurrently or multitasked on a CPU.
False
(CAN execute concurrently)