What does the operating system do regarding I/O channels?
Allocates I/O channels and devices to processes.
What does swapping involve in process management?
Moving part or all of a process from main memory to disk.
1/162
p.18
I/O Management

What does the operating system do regarding I/O channels?

Allocates I/O channels and devices to processes.

p.15
Process Suspension

What does swapping involve in process management?

Moving part or all of a process from main memory to disk.

p.17
Process Suspension

What is one reason for process suspension?

Waiting for I/O operations to complete.

p.22
Process Management

Who must have access to the process tables?

The operating system (OS).

p.8
Process Creation and Termination

What does the OS allocate for the new process during creation?

Space for the process.

p.6
Process Control Block (PCB)

Who creates and manages the Process Control Block?

The operating system.

p.26
CPU Modes of Execution

What is System Mode in CPU execution?

A more-privileged mode also referred to as control mode or kernel mode.

p.10
Spawning Processes

How is spawning used in web browsers?

By opening new tabs or child windows.

p.4
Process Management

What is a process?

A program in execution.

p.15
Process Suspension

What happens to a blocked process during swapping?

It is moved to a disk into a suspend queue.

p.8
Process Creation and Termination

What is the first step the OS takes when creating a new process?

Assigns a unique process identifier to the new process.

p.23
Process Control Block (PCB)

What is necessary for managing a process?

The attributes of the process.

p.26
CPU Modes of Execution

What is User Mode in CPU execution?

A less-privileged mode where user programs typically execute.

p.15
Process Suspension

When does the operating system perform swapping?

When none of the processes in main memory is in the Ready state.

p.22
Process Management

What must process tables reference?

Memory, I/O, and files, directly or indirectly.

p.29
Process Management

What happens when an app saves a file?

The kernel is involved through a system call.

p.3
Process Management

What is represented in Figure 3.10 regarding processes?

Resource allocation at one snapshot in time.

p.8
Process Creation and Termination

What is initialized as part of the process creation?

The process control block.

p.6
Process Control Block (PCB)

What can be done to a running process according to the attributes of a PCB?

It can be interrupted and later resumed as if the interruption had not occurred.

p.1
Process Management

What is the main focus of Chapter 3 in William Stallings' book?

Process Description and Control.

p.28
Process Management

What is a supervisor call?

An explicit request to call an operating system function.

p.28
Process Management

What type of event triggers an interrupt?

An asynchronous external event.

p.17
Process Suspension

What role does process suspension play in system performance?

It helps manage system load and optimize performance.

p.21
I/O Management

What is the role of a file management system?

To maintain and use information related to files.

p.29
Process Management

What role does the kernel play in application operations?

It handles system calls made by applications.

p.9
Process Creation and Termination

Why is process creation important for system performance?

It enables better utilization of CPU and system resources.

p.27
CPU Modes of Execution

What mode does the processor switch to when handling an interrupt?

From user mode to kernel mode.

p.14
Process States and Transitions

What does it mean when a process is in the 'Suspend' state?

It is waiting for an event and has been swapped to secondary storage.

p.5
Memory Management in Operating Systems

What does the text segment of memory contain?

Executable instructions.

p.13
Process States and Transitions

What triggers a process to transition from 'Blocked' to 'Ready'?

The occurrence of the event it was waiting for.

p.30
Context Switching

What is restored to the processor during a context switch?

The context that existed at the time the selected process was last switched out.

p.32
Process Management

What is a process?

A process is a program in execution, which includes the program code, its current activity, and the resources allocated to it.

p.12
Process Termination

What does time overrun mean in process termination?

The process has waited longer than a specified maximum for a certain event to occur.

p.12
Process Termination

What can lead to operator or OS intervention in process termination?

The operator or the operating system has terminated the process, such as in a deadlock situation.

p.19
Memory Management in Operating Systems

What is the purpose of memory tables?

To keep track of both main (real) and secondary (virtual) memory.

p.1
Process Management

Which edition of the book 'Operating Systems: Internals and Design Principles' is referenced?

Eighth Edition.

p.3
I/O Management

What does I/O stand for in the context of computer resources?

Input/Output.

p.22
Memory Management in Operating Systems

What are process tables subject to?

Memory management.

p.23
Process Control Block (PCB)

What must the OS know to manage and control a process?

The location and attributes of the process.

p.24
Process Control Block (PCB)

What does the User Program in a process image represent?

The program to be executed.

p.27
Context Switching

What happens if no interrupts are pending in mode switching?

The processor proceeds to the fetch stage and fetches the next instruction of the current program in the current process.

p.10
Spawning Processes

What happens if only the parent process runs?

The process has to wait a long time if many inputs are given.

p.5
Memory Management in Operating Systems

What is the purpose of the heap in memory?

To provide dynamically allocated memory to a process during runtime.

p.14
Process States and Transitions

What happens to a process in the 'Exit' state?

It has been released from the pool of executable processes by the OS, either because it halted or aborted.

p.7
Process Control Block (PCB)

What could happen if there is a bug in a routine that affects Process Control Blocks?

It could damage the blocks and destroy the system’s ability to manage affected processes.

p.25
Process Control Block (PCB)

What does shared address space refer to in the context of processes?

It refers to memory that can be accessed by multiple processes.

p.18
Process Management

What function involves determining which process runs at a given time?

Process scheduling and dispatching.

p.31
CPU Modes of Execution

What triggers a mode switch?

System calls or interrupts that require kernel-level access.

p.32
CPU Modes of Execution

What is kernel mode?

Kernel mode is a privileged mode of operation that allows the execution of any CPU instruction and access to any memory address, enabling full control over the system.

p.32
Context Switching

What is process switching or context switching?

Process switching, or context switching, is the procedure of storing the state of a currently running process and loading the state of another process, allowing multiple processes to share the CPU effectively.

p.20
I/O Management

What can the status of an I/O device be at any given time?

An I/O device may be available or assigned to a particular process.

p.11
Process Termination

What must a process have to indicate its completion?

A means to indicate its completion.

p.9
Process Creation and Termination

What is one reason for process creation?

To execute a program.

p.9
Process Creation and Termination

Why might a process be created for resource allocation?

To manage and allocate system resources efficiently.

p.29
Process Management

What actions involve the kernel through system calls?

Saving a file, writing to the terminal, or opening a TCP connection.

p.3
Process Management

What do P1, P2, and Pn represent in the context of processes?

They represent different processes in the system.

p.21
I/O Management

What information do file tables provide?

Existence of files, location on secondary memory, current status, and other attributes.

p.13
Process States and Transitions

What are the main states in a process state transition diagram?

New, Ready, Blocked, Running, Exit.

p.16
Process Suspension

What is the purpose of the Suspend state in process management?

To manage processes that are swapped out of main memory and placed onto external storage.

p.13
Process States and Transitions

What occurs when an event happens for a suspended process?

The process can be activated and moved to the Ready state.

p.16
Process Suspension

What are the two types of Suspend states mentioned?

Suspend wait and suspend blocked.

p.13
Process States and Transitions

What does 'Exit' signify in a process state?

The process has completed its execution.

p.18
Process States and Transitions

What is the function of process switching in an operating system?

To switch the CPU from one process to another.

p.12
Process Termination

What can cause a process to terminate due to memory issues?

The process requires more memory than the system can provide.

p.18
I/O Management

What is a typical function of I/O management?

Buffer management.

p.32
Process States and Transitions

What are the states of a process as per Fig. 3.9?

The states include new (process is being created), ready (waiting to be assigned to a processor), running (currently being executed), suspend (temporarily inactive), block (waiting for an event), and exit (finished execution).

p.12
Process Termination

What is an I/O failure?

An error occurs during input or output, such as inability to find a file.

p.18
Process Management

What does monitoring refer to in the context of operating systems?

Observing system performance and resource usage.

p.12
Process Termination

What happens to offspring processes when a parent process terminates?

The operating system may automatically terminate all of the offspring of that parent.

p.4
Process Management

How is a process described in terms of its nature?

It is considered passive.

p.19
Memory Management in Operating Systems

How are processes maintained on secondary memory?

Using some sort of virtual memory or simple swapping mechanism.

p.6
Process Control Block (PCB)

What is a Process Control Block (PCB)?

A data structure that contains information about a process.

p.2
Process Management

How are resources managed in application execution?

Resources are made available to multiple applications.

p.2
Process Management

What happens to the processor during application execution?

The processor is switched among multiple applications so all will appear to be progressing.

p.9
Process Creation and Termination

How does process creation relate to user requests?

Processes are created in response to user requests for services.

p.21
I/O Management

How do some operating systems handle file management?

They manage much of the detail of file management themselves.

p.10
Spawning Processes

What is a key benefit of spawning processes?

It allows multiple child processes to run in parallel, completing tasks quickly.

p.5
Memory Management in Operating Systems

What is stored in the stack memory?

Temporary data such as function parameters, return addresses, and local variables.

p.30
Context Switching

What must be updated for the process currently in the Running state during a context switch?

The process control block (PCB).

p.7
Process Control Block (PCB)

What is the main difficulty associated with Process Control Blocks?

Protection, not access.

p.30
Context Switching

What must be updated for the newly selected process during a context switch?

The process control block (PCB) of the selected process.

p.18
Process Creation and Termination

What is one of the typical functions of an operating system kernel related to process management?

Process creation and termination.

p.31
CPU Modes of Execution

Which switch is generally faster, mode switch or process switch?

Mode switch is generally faster than process switch.

p.12
Process Termination

What constitutes a protection error during process execution?

The process attempts to use a resource it is not allowed to use or tries to use it improperly.

p.12
Process Termination

What authority does a parent process have regarding its offspring?

A parent process typically has the authority to terminate any of its offspring.

p.20
I/O Management

What are I/O tables used for in an operating system?

To manage the I/O devices and channels of the computer system.

p.28
Process Management

What causes a trap in process execution?

An error or an exception condition associated with the execution of the current instruction.

p.11
Process Termination

What should a batch job include for termination?

A HALT instruction or an explicit OS service call.

p.11
Process Termination

How does an interactive application indicate process completion?

Through user actions like logging off or quitting an application.

p.24
Process Control Block (PCB)

What is the modifiable part of the user space in a process image?

User Data, which may include program data, a user stack area, and modifiable programs.

p.2
Process Management

What is the benefit of switching the processor among applications?

It allows efficient use of the processor and I/O devices.

p.14
Process States and Transitions

What is the state of a process that is currently being executed?

Running.

p.7
Process Control Block (PCB)

What is the most important data structure in an operating system?

The Process Control Block (PCB).

p.13
Process States and Transitions

What happens when a process is in the 'Blocked' state?

It waits for an event to occur.

p.25
Process Control Block (PCB)

What is the purpose of a Process Control Block (PCB)?

To store process identification and control information.

p.30
Context Switching

What is selected after moving the process control block to the queue?

Another process for execution.

p.16
Process Suspension

What causes a process to move to secondary memory in the suspend wait state?

Waiting for an event.

p.31
CPU Modes of Execution

What is a mode switch?

A transition between user mode and kernel mode in an operating system.

p.18
Memory Management in Operating Systems

What is the purpose of memory management in an operating system?

Allocation of address space to processes.

p.18
Process Management

What function involves tracking resource usage in an operating system?

Accounting.

p.12
Process Termination

What is a privileged instruction in process termination?

The process attempts to use an instruction reserved for the operating system.

p.28
Process Management

What is the mechanism used for interrupting the execution of a process due to an external event?

Interrupt.

p.17
Process Suspension

Why might a process be suspended due to memory management?

To free up memory for other processes.

p.17
Process Suspension

How does process suspension relate to resource allocation?

Processes may be suspended to allocate resources to higher-priority tasks.

p.29
Process Management

What is a system call?

A function call from an app into the kernel.

p.3
Memory Management in Operating Systems

What are the two types of memory mentioned in the context of computer resources?

Main Memory and Virtual Memory.

p.8
Process Creation and Termination

What does the OS set up in addition to the process control block?

The appropriate linkages.

p.8
Process Creation and Termination

What may the OS create or expand during the process creation?

Other data structures.

p.14
Process States and Transitions

What is a 'Blocked/Waiting' process?

A process that cannot execute until some event occurs, such as the completion of an I/O operation.

p.7
Process Control Block (PCB)

How do OS modules interact with Process Control Blocks?

Blocks are read and/or modified by virtually every module in the OS.

p.30
Context Switching

What happens to the process control block of the currently running process during a context switch?

It is moved to the appropriate queue.

p.25
Process Control Block (PCB)

What is included in the user stack of a process?

The user stack contains temporary data such as function parameters, return addresses, and local variables.

p.16
Process Suspension

What happens to a process after its work is finished in the suspend blocked state?

It may go to suspend ready.

p.31
Context Switching

What is a process switch?

The act of switching the CPU from one process to another.

p.32
CPU Modes of Execution

What is user mode?

User mode is a restricted mode of operation for running user applications, where the access to hardware and system resources is limited to prevent interference with the kernel.

p.18
Process Control Block (PCB)

What is managed by the operating system to keep track of processes?

Process control blocks.

p.18
Memory Management in Operating Systems

What does swapping refer to in memory management?

Moving processes between main memory and disk.

p.18
Process Management

What is one of the support functions of an operating system?

Interrupt handling.

p.12
Process Termination

What does data misuse refer to in process termination?

A piece of data is of the wrong type or is not initialized.

p.22
Process Management

What must be maintained to manage processes?

Process tables.

p.23
Process Control Block (PCB)

What does the process control structure indicate?

Where the process is located.

p.6
Process Control Block (PCB)

What information does a Process Control Block typically contain?

State, priority, program counter, memory pointers, context data, I/O status information, and accounting information.

p.10
Spawning Processes

What is spawning in the context of computer games?

The process of giving a game character new life or creating a copy of the parent.

p.10
Spawning Processes

What is an example of spawning in video games?

Creating new guns that are similar to previous guns.

p.26
CPU Modes of Execution

What executes in System Mode?

The kernel of the operating system.

p.24
Process Control Block (PCB)

What is the Process Control Block (PCB)?

Data needed by the OS to control the process.

p.14
Process States and Transitions

What characterizes a 'New' process?

It has just been created but has not yet been admitted to the pool of executable processes by the OS.

p.5
Memory Management in Operating Systems

What type of variables are stored in the data segment of memory?

Global variables.

p.16
Process Suspension

When does a process transition back to the Ready state?

When it is brought back into main memory.

p.25
Process Control Block (PCB)

What is the significance of the private user address space?

It holds the programs and data specific to a user process.

p.31
Context Switching

What triggers a process switch?

The need for the CPU to allocate time to a different process, often due to scheduling.

p.31
CPU Modes of Execution

What is the main purpose of a mode switch?

To allow user applications to safely access system resources.

p.32
Process Creation and Termination

What are examples of process creation, termination, and suspension?

Process creation occurs when a new process is initiated, termination happens when a process completes its execution, and suspension refers to temporarily halting a process without losing its state.

p.12
Process Termination

What is an arithmetic error in the context of process termination?

The process tries a prohibited computation, such as division by zero.

p.12
Process Termination

What occurs when a process attempts to execute an invalid instruction?

The process attempts to execute a nonexistent instruction.

p.17
Process Suspension

Can a process be suspended for debugging purposes?

Yes, processes can be suspended to facilitate debugging.

p.9
Process Creation and Termination

What role does process creation play in multitasking?

It allows multiple processes to run concurrently.

p.14
Process States and Transitions

What does it mean when a process is in the 'Ready' state?

It is prepared to execute when given the opportunity.

p.7
Process Control Block (PCB)

What information does the Process Control Block contain?

All information about a process needed by the OS.

p.13
Process Suspension

What is the purpose of the 'Suspend' state in a process?

To temporarily halt a process without terminating it.

p.25
Process Control Block (PCB)

What information does the PCB contain regarding processor state?

Processor state information includes the current state of the CPU registers.

p.7
Process Control Block (PCB)

How can a design change in the Process Control Block affect the OS?

It could affect a number of modules in the OS.

p.25
Process Identification

How are multiple processes identified in a system?

Each process is assigned a unique process identifier (PID).

p.18
Process Synchronization

What does process synchronization support in an operating system?

Interprocess communication.

p.32
Process Control Block (PCB)

What is a Process Control Block (PCB)?

A Process Control Block is a data structure used by the operating system to store all the information about a process, including its state, program counter, CPU registers, and memory management information.

p.31
Context Switching

What is the main purpose of a process switch?

To manage CPU time among multiple processes efficiently.

p.24
Process Control Block (PCB)

What is the purpose of the stack in a process?

To store parameters and calling addresses for procedure and system calls.

p.21
I/O Management

What does the OS know in systems where the file management is handled by the file management system?

Little or no knowledge of files.

p.27
CPU Modes of Execution

Why does the processor switch to kernel mode during interrupt processing?

To allow the interrupt processing code to include privileged instructions.

p.16
Process Suspension

What happens to a process in the Ready/Suspend state?

It is swapped out of main memory and placed onto external storage by the scheduler.

p.5
Memory Management in Operating Systems

What does the Program Counter (PC) represent?

The current activity of the process.

p.30
Context Switching

What data structures need to be updated during a context switch?

Memory management data structures.

p.30
Process States and Transitions

What must the OS do if the currently running process is moved to another state?

Make substantial changes in its environment.

p.12
Process Termination

What indicates normal completion of a process?

The process executes an OS service call to indicate that it has completed running.

p.12
Process Termination

What happens when a process exceeds its time limit?

The process has run longer than the specified total time limit.

p.12
Process Termination

What is a bounds violation in process termination?

The process tries to access a memory location that it is not allowed to access.

p.27
Context Switching

What occurs when an interrupt is pending?

The processor sets the program counter to the starting address of an interrupt handler program.

p.30
Context Switching

What is the first step in a full process switch?

Save the context of the processor.

p.7
Process Control Block (PCB)

What does the Process Control Block define?

The state of the OS.

p.13
Process States and Transitions

What is the difference between 'Ready' and 'Ready/Suspend' states?

'Ready' means the process is ready to run, while 'Ready/Suspend' indicates it is ready but temporarily suspended.

p.13
Process Management

What is the role of 'Dispatch' in process management?

To allocate CPU time to a process in the Ready state.

p.32
CPU Modes of Execution

If you are playing FIFA or Minecraft, is the process in kernel domain or user domain?

The process is in user domain, as these are applications running in a restricted mode to interact with the system.

Study Smarter, Not Harder
Study Smarter, Not Harder