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)