What is a process?
Click to see answer
A program in execution.
Click to see question
What is a process?
A program in execution.
How is a process described in terms of its nature?
It is considered passive.
What does swapping involve in process management?
Moving part or all of a process from main memory to disk.
What are I/O tables used for in an operating system?
To manage the I/O devices and channels of the computer system.
What is the purpose of memory tables?
To keep track of both main (real) and secondary (virtual) memory.
When does the operating system perform swapping?
When none of the processes in main memory is in the Ready state.
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.
What is the mechanism used for interrupting the execution of a process due to an external event?
Interrupt.
What is the main focus of Chapter 3 in William Stallings' book?
Process Description and Control.
How are processes maintained on secondary memory?
Using some sort of virtual memory or simple swapping mechanism.
What must be maintained to manage processes?
Process tables.
What happens to a blocked process during swapping?
It is moved to a disk into a suspend queue.
What is one reason for process suspension?
Waiting for I/O operations to complete.
What causes a trap in process execution?
An error or an exception condition associated with the execution of the current instruction.
Which edition of the book 'Operating Systems: Internals and Design Principles' is referenced?
Eighth Edition.
What must process tables reference?
Memory, I/O, and files, directly or indirectly.
What must a process have to indicate its completion?
A means to indicate its completion.
Why might a process be suspended due to memory management?
To free up memory for other processes.
What is a supervisor call?
An explicit request to call an operating system function.
What is a Process Control Block (PCB)?
A data structure that contains information about a process.
What does the process control structure indicate?
Where the process is located.
What is the first step the OS takes when creating a new process?
Assigns a unique process identifier to the new process.
Who must have access to the process tables?
The operating system (OS).
What should a batch job include for termination?
A HALT instruction or an explicit OS service call.
What does I/O stand for in the context of computer resources?
Input/Output.
What happens when an app saves a file?
The kernel is involved through a system call.
What is one reason for process creation?
To execute a program.
How does process suspension relate to resource allocation?
Processes may be suspended to allocate resources to higher-priority tasks.
What type of event triggers an interrupt?
An asynchronous external event.
How are resources managed in application execution?
Resources are made available to multiple applications.
What information does a Process Control Block typically contain?
State, priority, program counter, memory pointers, context data, I/O status information, and accounting information.
What is necessary for managing a process?
The attributes of the process.
What does the OS allocate for the new process during creation?
Space for the process.
How does an interactive application indicate process completion?
Through user actions like logging off or quitting an application.
What are process tables subject to?
Memory management.
What is represented in Figure 3.10 regarding processes?
Resource allocation at one snapshot in time.
What is a system call?
A function call from an app into the kernel.
Why might a process be created for resource allocation?
To manage and allocate system resources efficiently.
What role does process suspension play in system performance?
It helps manage system load and optimize performance.
What happens to the processor during application execution?
The processor is switched among multiple applications so all will appear to be progressing.
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.
What is User Mode in CPU execution?
A less-privileged mode where user programs typically execute.
Who creates and manages the Process Control Block?
The operating system.
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.
What must the OS know to manage and control a process?
The location and attributes of the process.
What is initialized as part of the process creation?
The process control block.
What are the two types of memory mentioned in the context of computer resources?
Main Memory and Virtual Memory.
What actions involve the kernel through system calls?
Saving a file, writing to the terminal, or opening a TCP connection.
What is the role of a file management system?
To maintain and use information related to files.
How does process creation relate to user requests?
Processes are created in response to user requests for services.
What is an example of spawning in video games?
Creating new guns that are similar to previous guns.
Can a process be suspended for debugging purposes?
Yes, processes can be suspended to facilitate debugging.
What is System Mode in CPU execution?
A more-privileged mode also referred to as control mode or kernel mode.
What is the benefit of switching the processor among applications?
It allows efficient use of the processor and I/O devices.
What does the User Program in a process image represent?
The program to be executed.
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.
What does the OS set up in addition to the process control block?
The appropriate linkages.
What do P1, P2, and Pn represent in the context of processes?
They represent different processes in the system.
What role does the kernel play in application operations?
It handles system calls made by applications.
How do some operating systems handle file management?
They manage much of the detail of file management themselves.
What role does process creation play in multitasking?
It allows multiple processes to run concurrently.
What executes in System Mode?
The kernel of the operating system.
How is spawning used in web browsers?
By opening new tabs or child windows.
What is the state of a process that is currently being executed?
Running.
What is the purpose of the stack in a process?
To store parameters and calling addresses for procedure and system calls.
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.
What may the OS create or expand during the process creation?
Other data structures.
What information do file tables provide?
Existence of files, location on secondary memory, current status, and other attributes.
Why is process creation important for system performance?
It enables better utilization of CPU and system resources.
What is a key benefit of spawning processes?
It allows multiple child processes to run in parallel, completing tasks quickly.
What does it mean when a process is in the 'Ready' state?
It is prepared to execute when given the opportunity.
What is the Process Control Block (PCB)?
Data needed by the OS to control the process.
What occurs when an interrupt is pending?
The processor sets the program counter to the starting address of an interrupt handler program.
What is the most important data structure in an operating system?
The Process Control Block (PCB).
What does the OS know in systems where the file management is handled by the file management system?
Little or no knowledge of files.
What happens if only the parent process runs?
The process has to wait a long time if many inputs are given.
What is a 'Blocked/Waiting' process?
A process that cannot execute until some event occurs, such as the completion of an I/O operation.
What are the main states in a process state transition diagram?
New, Ready, Blocked, Running, Exit.
What mode does the processor switch to when handling an interrupt?
From user mode to kernel mode.
What is stored in the stack memory?
Temporary data such as function parameters, return addresses, and local variables.
What information does the Process Control Block contain?
All information about a process needed by the OS.
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.
What is the first step in a full process switch?
Save the context of the processor.
What happens when a process is in the 'Blocked' state?
It waits for an event to occur.
Why does the processor switch to kernel mode during interrupt processing?
To allow the interrupt processing code to include privileged instructions.
What is the purpose of the heap in memory?
To provide dynamically allocated memory to a process during runtime.
How do OS modules interact with Process Control Blocks?
Blocks are read and/or modified by virtually every module in the OS.
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.
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.
What must be updated for the process currently in the Running state during a context switch?
The process control block (PCB).
What is the purpose of the 'Suspend' state in a process?
To temporarily halt a process without terminating it.
What type of variables are stored in the data segment of memory?
Global variables.
What does the Process Control Block define?
The state of the OS.
What is the purpose of a Process Control Block (PCB)?
To store process identification and control information.
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.
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.
What happens to the process control block of the currently running process during a context switch?
It is moved to the appropriate queue.
What occurs when an event happens for a suspended process?
The process can be activated and moved to the Ready state.
What does the text segment of memory contain?
Executable instructions.
What is the main difficulty associated with Process Control Blocks?
Protection, not access.
What information does the PCB contain regarding processor state?
Processor state information includes the current state of the CPU registers.
When does a process transition back to the Ready state?
When it is brought back into main memory.
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.
What is selected after moving the process control block to the queue?
Another process for execution.
What does the Program Counter (PC) represent?
The current activity of the process.
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.
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.
What are the two types of Suspend states mentioned?
Suspend wait and suspend blocked.
What triggers a process to transition from 'Blocked' to 'Ready'?
The occurrence of the event it was waiting for.
What must be updated for the newly selected process during a context switch?
The process control block (PCB) of the selected process.
How can a design change in the Process Control Block affect the OS?
It could affect a number of modules in the OS.
What is the significance of the private user address space?
It holds the programs and data specific to a user process.
What causes a process to move to secondary memory in the suspend wait state?
Waiting for an event.
What is the role of 'Dispatch' in process management?
To allocate CPU time to a process in the Ready state.
What data structures need to be updated during a context switch?
Memory management data structures.
What does shared address space refer to in the context of processes?
It refers to memory that can be accessed by multiple processes.
What happens to a process after its work is finished in the suspend blocked state?
It may go to suspend ready.
What does 'Exit' signify in a process state?
The process has completed its execution.
What is restored to the processor during a context switch?
The context that existed at the time the selected process was last switched out.
What is one of the typical functions of an operating system kernel related to process management?
Process creation and termination.
How are multiple processes identified in a system?
Each process is assigned a unique process identifier (PID).
What is a mode switch?
A transition between user mode and kernel mode in an operating system.
What must the OS do if the currently running process is moved to another state?
Make substantial changes in its environment.
What function involves determining which process runs at a given time?
Process scheduling and dispatching.
What is a process switch?
The act of switching the CPU from one process to another.
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.
What is the function of process switching in an operating system?
To switch the CPU from one process to another.
What indicates normal completion of a process?
The process executes an OS service call to indicate that it has completed running.
What triggers a mode switch?
System calls or interrupts that require kernel-level access.
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.
What does process synchronization support in an operating system?
Interprocess communication.
What happens when a process exceeds its time limit?
The process has run longer than the specified total time limit.
What triggers a process switch?
The need for the CPU to allocate time to a different process, often due to scheduling.
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.
What is managed by the operating system to keep track of processes?
Process control blocks.
What can cause a process to terminate due to memory issues?
The process requires more memory than the system can provide.
Which switch is generally faster, mode switch or process switch?
Mode switch is generally faster than process switch.
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.
What is the purpose of memory management in an operating system?
Allocation of address space to processes.
What is a bounds violation in process termination?
The process tries to access a memory location that it is not allowed to access.
What is the main purpose of a mode switch?
To allow user applications to safely access system resources.
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.
What does swapping refer to in memory management?
Moving processes between main memory and disk.
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.
What is the main purpose of a process switch?
To manage CPU time among multiple processes efficiently.
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.
What is a typical function of I/O management?
Buffer management.
What is an arithmetic error in the context of process termination?
The process tries a prohibited computation, such as division by zero.
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.
What does the operating system do regarding I/O channels?
Allocates I/O channels and devices to processes.
What does time overrun mean in process termination?
The process has waited longer than a specified maximum for a certain event to occur.
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).
What is one of the support functions of an operating system?
Interrupt handling.
What is an I/O failure?
An error occurs during input or output, such as inability to find a file.
What function involves tracking resource usage in an operating system?
Accounting.
What occurs when a process attempts to execute an invalid instruction?
The process attempts to execute a nonexistent instruction.
What does monitoring refer to in the context of operating systems?
Observing system performance and resource usage.
What is a privileged instruction in process termination?
The process attempts to use an instruction reserved for the operating system.
What does data misuse refer to in process termination?
A piece of data is of the wrong type or is not initialized.
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.
What happens to offspring processes when a parent process terminates?
The operating system may automatically terminate all of the offspring of that parent.
What authority does a parent process have regarding its offspring?
A parent process typically has the authority to terminate any of its offspring.