How does a process differ from a program?
A process is an 'active' entity, while a program is often regarded as a 'passive' entity.
What is the first operation in the lifecycle of a process?
Process Creation.
1/214
p.1
Definition and Concept of Process

How does a process differ from a program?

A process is an 'active' entity, while a program is often regarded as a 'passive' entity.

p.6
Process Life Cycle

What is the first operation in the lifecycle of a process?

Process Creation.

p.17
Threads and Multithreading

What is one advantage of user-level threads?

They can be more easily implemented than kernel threads.

p.13
Inter-Process Communication (IPC)

What is the benefit of dividing a task into subtasks?

It improves computation speed by allowing parallel execution.

p.10
Process Life Cycle

What happens to resources when a process terminates?

The OS releases the resources allocated to the process, including memory and file handles.

p.8
Process Scheduling in Operating Systems

What happens when a timer interrupt occurs during process execution?

The currently running process is preempted, and control is returned to the operating system.

p.18
Threads and Multithreading

What is a key advantage of kernel-level threads?

The kernel-level thread is fully aware of all threads.

p.7
Process Life Cycle

What initiates the process creation in an operating system?

A request from a user or a system component.

p.11
Inter-Process Communication (IPC)

How does communication occur between processes A and B in shared memory?

Process A writes information to the shared region, and Process B reads from it.

p.21
CPU Scheduling Algorithms

What is throughput in CPU scheduling?

Throughput is the total number of processes completed per unit of time, representing the total work done by the CPU.

p.18
Threads and Multithreading

What is a disadvantage of kernel-level threads?

The implementation of kernel threads is more difficult than user threads.

p.6
Process Life Cycle

What is process synchronization?

The coordination of processes to ensure that they operate in a correct and predictable manner.

p.8
Scheduling Algorithms

What do scheduling algorithms determine in process execution?

The order and duration of process execution.

p.15
Inter-Process Communication (IPC)

What is a socket in the context of inter-process communication?

An endpoint for sending or receiving data in a network.

p.4
Definition and Concept of Process

What is an algorithm in the context of a computer program?

An element of a computer program that performs a certain task.

p.13
Inter-Process Communication (IPC)

What is required for achieving computation speed in a system?

Multiple CPUs and input/output devices.

p.17
Threads and Multithreading

What does user-level thread representation consist of?

Registers, PC, stack, and mini thread control blocks stored in the user-level process's address space.

p.12
Definition and Concept of Process

What is the need for cooperating processes in an OS?

To allow one process to write to a file while another reads from it, affecting each other.

p.10
Process Control Block (PCB)

What is updated in the process control block (PCB) when a process terminates?

The PCB is marked as 'terminated' and removed from the list of active processes.

p.17
Threads and Multithreading

What is a key feature of kernel-level threads?

The kernel recognizes and manages all threads through a thread control block.

p.5
Process Scheduling in Operating Systems

What is the role of the Short-Term scheduler?

To determine which work will be dispatched for execution.

p.15
Inter-Process Communication (IPC)

How can two-way communication be achieved using pipes?

By using two pipes to create a two-way data channel.

p.5
Process Scheduling in Operating Systems

What can happen if the Short-Term scheduler selects a job with a long CPU burst time?

Subsequent jobs will have to wait in a ready queue for a long period, leading to hunger.

p.10
Process Life Cycle

What does the exit status of a process indicate?

It indicates the outcome of its execution, whether completed successfully or encountered an error.

p.12
Process Life Cycle

What problem can occur if a consumer process waits for a message from another process?

Deadlock.

p.5
Process Scheduling in Operating Systems

What does the Medium-Term scheduler handle?

Switched-out processes.

p.1
Components of a Process

What is the purpose of the heap in a process?

It is the memory that is dynamically allocated to a process during its execution.

p.22
CPU Scheduling Algorithms

What is a significant advantage of SJF?

It has a minimum average waiting time among all operating system scheduling algorithms.

p.11
Inter-Process Communication (IPC)

What is the role of the kernel in message passing?

To receive messages from the producer process and send them to the consumer process.

p.7
Process Life Cycle

What does the OS do to set up the execution environment for a process?

The OS sets up the initial execution environment for the process.

p.2
Process Life Cycle

What are the five states a process can be in during its life cycle?

Start, Ready, Running, Waiting, Terminated (or Exit).

p.11
Inter-Process Communication (IPC)

What is required for cooperating processes in an operating system?

A communication method to exchange data and information.

p.15
Inter-Process Communication (IPC)

What is a pipe in inter-process communication?

A unidirectional data channel used for communication between processes.

p.16
Threads and Multithreading

What are the two types of threads in operating systems?

Kernel level threads and user-level threads.

p.19
Threads and Multithreading

What is the many-to-one threading model?

It maps many user-level threads to a single kernel-level thread, with thread management done in user space.

p.5
Process Scheduling in Operating Systems

What happens to processes that require IO time according to the Medium-Term scheduler?

Their state is changed from running to waiting.

p.6
Process Life Cycle

What happens during process termination?

The process is removed from the system and its resources are released.

p.16
Threads and Multithreading

How does the kernel-level thread manage user-level threads?

The kernel-level thread manages user-level threads as if they are single-threaded processes.

p.13
Inter-Process Communication (IPC)

What advantage does modularity provide in task execution?

It allows breaking complex tasks into modules for more efficient and faster execution.

p.15
Inter-Process Communication (IPC)

How do message queues facilitate inter-process communication?

They allow multiple processes to read and write messages without being connected.

p.13
Inter-Process Communication (IPC)

How does data sharing benefit cooperating processes?

It allows processes to execute faster and more efficiently by accessing the same files concurrently.

p.12
Definition and Concept of Process

What is the kernel in an operating system?

The heart and core of an operating system that interacts with hardware to execute processes.

p.2
Process Life Cycle

What does the 'Ready' state indicate for a process?

The process is waiting for a processor to be assigned to it.

p.4
Definition and Concept of Process

What is a computer program?

A set of instructions that, when executed by a computer, perform a certain purpose.

p.16
Threads and Multithreading

What are the advantages of using threads?

Creating a new thread takes less time than creating a new process, threads can share common data, context switching is faster, and terminating a thread takes less time than terminating a process.

p.22
CPU Scheduling Algorithms

What does Shortest Job First (SJF) scheduling select?

The waiting process with the smallest execution time to execute next.

p.20
Process Scheduling in Operating Systems

What is CPU scheduling?

The process of deciding which process will own the CPU while another process is suspended.

p.2
Process Life Cycle

What does the 'Terminated' state signify for a process?

The process has completed execution or has been terminated and is waiting for removal from memory.

p.13
Inter-Process Communication (IPC)

Why do we need cooperating processes in an operating system?

To allow different processes to communicate and run smoothly without interrupting each other.

p.9
Process Scheduling in Operating Systems

What triggers preemption in an operating system?

A higher-priority process becoming available or the expiration of a time slice.

p.18
Threads and Multithreading

What are the components of a thread?

Program counter, register set, and stack space.

p.16
Threads and Multithreading

What is the significance of the program counter and stack in threads?

Each thread of the same process has a separate program counter and a stack of activation records and control blocks.

p.14
Inter-Process Communication (IPC)

What are barriers in IPC?

Synchronization points that all processes must reach before they can proceed.

p.17
Threads and Multithreading

How does the context switch time of kernel threads compare to user-level threads?

Context switch time is longer in kernel threads.

p.22
CPU Scheduling Algorithms

What is a common disadvantage of Priority Scheduling?

The Starvation Problem, where a process waits too long to be scheduled.

p.18
Threads and Multithreading

What is a benefit of multithreading in terms of responsiveness?

Processes can respond as soon as a thread completes its execution.

p.4
Types of Process Schedulers

What is the function of the Short-Term Scheduler?

Chooses one job from the ready queue and sends it to the CPU for processing.

p.20
Process Scheduling in Operating Systems

What is 'burst time' in CPU scheduling?

The time required by a process for CPU execution.

p.23
CPU Scheduling Algorithms

What is a drawback of frequent context switching in SRTF?

It consumes valuable CPU time for processing, diminishing its advantage of fast processing.

p.1
Definition and Concept of Process

What is a process in an operating system?

A process is a running program that serves as the foundation for all computation.

p.6
Process Life Cycle

What is the primary purpose of process operations in an operating system?

To ensure efficient utilization of system resources, multitasking, and a responsive computing environment.

p.2
Process Life Cycle

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

The process is being created.

p.6
Process Scheduling in Operating Systems

What does process scheduling involve?

Managing the order and allocation of CPU time to processes.

p.11
Inter-Process Communication (IPC)

How do cooperating processes communicate by sharing?

By using shared resources like data, memory, variables, and files.

p.17
Threads and Multithreading

In what type of operating systems can user-level threads be applied?

Operating systems that do not support threads at the kernel level.

p.3
Process Control Block (PCB)

What type of information is required for CPU scheduling?

Process priority and additional scheduling information.

p.18
Threads and Multithreading

How does the scheduler benefit from kernel-level threads?

The scheduler may decide to spend more CPU time on processes with a large number of threads.

p.3
Process Control Block (PCB)

What does memory management information include?

Information from the page table, memory limitations, and segment table.

p.11
Inter-Process Communication (IPC)

How do cooperating processes communicate through message passing?

The producer process sends a message to the kernel, which then sends it to the consumer process.

p.8
Process Life Cycle

What state does a process enter when it initiates a blocking operation?

Blocked or waiting state.

p.2
Process Control Block (PCB)

What is a Process Control Block (PCB)?

A data structure managed by the operating system that contains all information required to track a process.

p.3
Process Control Block (PCB)

What does accounting information in a PCB comprise?

CPU use for process execution, time constraints, and execution ID.

p.3
Process Control Block (PCB)

What does I/O status information include?

A list of the process’s I/O devices.

p.20
Process Scheduling in Operating Systems

Why is effective CPU scheduling important in multiprogramming?

To improve resource utilization and avoid CPU idleness.

p.10
Process Life Cycle

What are the two modes of process execution?

Serial mode and parallel mode.

p.18
Threads and Multithreading

Why is context switching faster between threads than between processes?

The context switching period between threads is less than that for processes, which incurs more overhead.

p.8
Inter-Process Communication (IPC)

What can cause a process to enter a blocked state in inter-process communication?

Waiting for messages or data from other processes through mechanisms like message queues or pipes.

p.21
CPU Scheduling Algorithms

What are the advantages of the FCFS scheduling algorithm?

FCFS is easy to implement and follows a first-come, first-serve method.

p.20
Process Scheduling in Operating Systems

What is 'completion time' in CPU scheduling?

The time at which a process completes its execution.

p.2
Process Life Cycle

What occurs when a process enters the 'Running' state?

The OS scheduler assigns a processor to the process, and it executes instructions.

p.3
Process Control Block (PCB)

What must processes be stored in for execution in the running state?

Various CPU registers.

p.9
Process Scheduling in Operating Systems

What does preemption in an operating system refer to?

The act of temporarily interrupting the execution of a currently running process to allocate the CPU to another process.

p.15
Inter-Process Communication (IPC)

What is shared memory in inter-process communication?

Memory that can be simultaneously accessed by multiple processes for communication.

p.4
Process Scheduling in Operating Systems

What is the role of process scheduling in an operating system?

Responsible for selecting a processor process based on a scheduling method and removing a processor process.

p.5
Process Scheduling in Operating Systems

What is the effect of the Medium-Term scheduler on the degree of multiprogramming?

It reduces the degree of multiprogramming.

p.14
Inter-Process Communication (IPC)

What are condition variables used for in IPC?

To wait for a certain condition to be met before proceeding.

p.22
CPU Scheduling Algorithms

What is the main principle of Priority Scheduling?

Schedules tasks based on priority, executing the most important processes first.

p.6
Process Life Cycle

What is the significance of process accounting and monitoring?

To track resource usage and performance metrics of processes.

p.7
Process Scheduling in Operating Systems

What is the purpose of dispatching/scheduling in an operating system?

To select the next process to execute on the CPU.

p.22
CPU Scheduling Algorithms

What is the Round Robin scheduling algorithm based on?

Cyclically assigning each process a fixed time slot.

p.3
Process Life Cycle

What does the WAITING state mean?

The process is waiting for some event to occur.

p.7
Process Control Block (PCB)

What happens after a context switch is complete?

The OS loads the saved state of the selected process from its PCB.

p.1
Components of a Process

What attributes are held by a process?

Hardware status, RAM, CPU, and other attributes.

p.12
Components of a Process

What are the main functions of the kernel?

Process management, file management, memory management, and I/O management.

p.4
Definition and Concept of Process

How is a process defined in relation to a computer program?

A process refers to a dynamic instance of a computer program.

p.6
Inter-Process Communication (IPC)

What is the role of inter-process communication (IPC)?

To allow processes to communicate and synchronize their actions.

p.10
Process Life Cycle

Why does the parent process need to be notified upon termination of a child process?

To inform it of the termination and the exit status of the child process.

p.21
CPU Scheduling Algorithms

How can a scheduling algorithm affect waiting time?

A scheduling algorithm can minimize the waiting time of a process, although it cannot change the execution time required by the process.

p.16
Threads and Multithreading

Can you give examples of kernel-level threads?

Java threads and POSIX threads.

p.10
Inter-Process Communication (IPC)

What are cooperating processes in an operating system?

Processes that can affect or get affected by other processes under execution.

p.20
Process Scheduling in Operating Systems

What are the objectives of a process scheduling algorithm?

Maximize CPU utilization, ensure fair allocation, maximize throughput, minimize turnaround time, minimize waiting time, and minimize response time.

p.10
Process Life Cycle

What characterizes serial mode of process execution?

Processes are executed one after the other; the next process cannot start until the previous one terminates.

p.7
Process Scheduling in Operating Systems

What criteria may be used for process selection during dispatching?

Process priority, execution history, and the scheduling algorithm employed by the OS.

p.23
CPU Scheduling Algorithms

What type of scheduling is Round Robin considered?

Preemptive, as processes are given limited time on the CPU.

p.21
CPU Scheduling Algorithms

What are the disadvantages of the FCFS scheduling algorithm?

FCFS suffers from the Convoy effect, has a higher average waiting time compared to other algorithms, and is not very efficient.

p.3
Process vs Program

What is the difference between a process and a program?

A program is a piece of code, while a process is the running representation of that code.

p.1
Components of a Process

What are the four pieces a program is divided into when it becomes a process?

Stack, heap, text, and data.

p.6
Process Life Cycle

What is context switching?

The process of saving and restoring the state of a CPU so that multiple processes can share a single CPU resource.

p.11
Inter-Process Communication (IPC)

What is a critical section in the context of shared communication?

A section that provides data integrity and avoids data inconsistency.

p.17
Threads and Multithreading

Why are user-level threads considered faster and more efficient?

Because context switch time is shorter than that of kernel-level threads.

p.8
Process Life Cycle

What is a blocking operation in an operating system?

A situation where a process is temporarily suspended until a specific event or condition occurs.

p.15
Inter-Process Communication (IPC)

What are signals used for in inter-process communication?

Signals are system messages sent between processes, typically for remote commands.

p.19
Threads and Multithreading

What is a disadvantage of the many-to-one model?

When a thread makes a blocking system call, the entire process will be blocked.

p.22
CPU Scheduling Algorithms

How does SJF compare to First Come First Serve (FCFS) in terms of average waiting time?

SJF reduces the average waiting time, making it better than FCFS.

p.21
CPU Scheduling Algorithms

What is response time in the context of CPU scheduling?

Response time is the time taken from the submission of a process until its first response is produced, important for interactive systems.

p.7
Process Life Cycle

What is performed during the initialization stage of a process?

Initializations such as initializing variables, setting default values, and preparing the process for execution.

p.4
Types of Process Schedulers

What are the three categories of process schedulers?

Long-Term Scheduler, Short-Term Scheduler, and Medium-Term Scheduler.

p.3
Process Life Cycle

What does the NEW state represent?

The creation of the process.

p.19
Threads and Multithreading

Which operating systems use the one-to-one relationship model?

OS/2, Windows NT, and Windows 2000.

p.10
Inter-Process Communication (IPC)

How do cooperating processes share data?

By directly sharing a logical space or through files or messages.

p.20
Process Scheduling in Operating Systems

What does CPU utilization refer to in scheduling?

The extent to which the CPU is used effectively, ideally aiming for 100% utilization.

p.18
Threads and Multithreading

What are the three types of multithreading models?

Many to many, many to one, and one to one relationships.

p.20
Process Scheduling in Operating Systems

What is 'arrival time' in the context of CPU scheduling?

The time at which the process arrives in the ready queue.

p.11
Process vs Program

What is an independent process in an operating system?

A process that does not affect or impact any other process and does not share data with them.

p.16
Threads and Multithreading

What is a thread in the context of operating systems?

A single sequential flow of execution of tasks of a process, also known as a thread of execution or thread of control.

p.11
Inter-Process Communication (IPC)

What are the two methods of communication for cooperating processes in OS?

Cooperation by Sharing and Cooperation by Message Passing.

p.8
Resource Allocation

What is the role of the dispatching operation in resource allocation?

It allocates CPU time to processes based on the scheduling algorithm and their priority.

p.16
Threads and Multithreading

What is a user-level thread?

A thread that the operating system does not recognize, easily implemented by the user, but if it blocks, the whole process is blocked.

p.1
Components of a Process

What does the text section of a process contain?

Contents present in the processor’s registers and the current activity reflected by the value of the program counter.

p.21
CPU Scheduling Algorithms

What does turnaround time refer to?

Turnaround time is the total time taken for a process to arrive in the ready queue and complete.

p.17
Threads and Multithreading

What is a disadvantage of user-level threads?

They lack coordination between the thread and the kernel.

p.19
Threads and Multithreading

What is the one-to-one threading model?

It establishes a one-to-one relationship between user-level threads and kernel-level threads, allowing more concurrency.

p.17
Threads and Multithreading

What happens if a user-level thread causes a page fault?

The entire process is blocked.

p.8
Process Life Cycle

Why are blocking operations important in an operating system?

They prevent processes from monopolizing system resources while waiting for external events.

p.6
Process Scheduling in Operating Systems

What is process priority management?

The assignment of priority levels to processes to determine their scheduling order.

p.18
Threads and Multithreading

What is the benefit of effective utilization of a multiprocessor system with threads?

More than one thread can be scheduled on multiple processors.

p.13
Inter-Process Communication (IPC)

What is process starvation in the context of cooperating processes?

A condition where a process must wait until a message is received by a previous process.

p.20
Process Scheduling in Operating Systems

How is 'waiting time' calculated?

Waiting Time = Turnaround Time - Burst Time.

p.14
Inter-Process Communication (IPC)

How is synchronization used in databases?

To ensure that only one process can write to the data at a time.

p.3
Process vs Program

What is an example of a simple program in C?

#include <stdio.h> int main() { printf(“Hi, Subhadip! ”); return 0; }

p.16
Threads and Multithreading

How does a thread differ from a process?

A thread is often referred to as a lightweight process and can share common data without needing Inter-Process Communication.

p.19
Threads and Multithreading

What is the many-to-many threading model?

It allows multiple user-level threads to multiplex with multiple kernel-level threads, enabling parallel execution on multiprocessor machines.

p.19
Threads and Multithreading

What happens when a thread in the many-to-many model performs a blocking system call?

The kernel can schedule another thread for execution.

p.12
Process Life Cycle

What is process starvation?

When a consumer process does not receive a message it needs to execute a task.

p.10
Process Life Cycle

What is the purpose of file cleanup during process termination?

To ensure that opened or temporary files are properly closed and removed, preventing data corruption.

p.5
Process Scheduling in Operating Systems

What is the operation called when the Medium-Term scheduler stops a process to make space for others?

Swapping.

p.20
Process Scheduling in Operating Systems

What is the main function of CPU scheduling?

To ensure that whenever the CPU remains idle, the OS has selected one of the processes available in the ready-to-use line.

p.18
Threads and Multithreading

How do threads enhance system throughput?

By splitting a process into many threads, increasing the number of jobs done in unit time.

p.9
Process Scheduling in Operating Systems

What is time-sharing in the context of process scheduling?

Processes are allocated small time slices (quantum) of CPU time, and when a time slice expires, the currently running process is preempted.

p.22
CPU Scheduling Algorithms

What happens when a higher priority process arrives in Priority Scheduling?

It preempts the currently executing lower priority process.

p.4
Types of Process Schedulers

What does the Long-Term Scheduler do?

Selects processes from the pool and maintains them in the primary memory’s ready queue.

p.3
Process Life Cycle

What does the READY state indicate?

The process is waiting to be assigned to any processor.

p.9
Process Scheduling in Operating Systems

Why is preemption crucial in real-time systems?

Because it ensures that higher-priority tasks meet strict timing requirements by preempting lower-priority tasks.

p.23
CPU Scheduling Algorithms

How does SRTF improve processing speed compared to SJF?

SRTF makes processing faster by selecting the process with the smallest amount of time remaining until completion.

p.23
CPU Scheduling Algorithms

What is a notable overhead characteristic of SRTF?

It requires very little overhead since decisions are made only when a process completes or a new process is added.

p.1
Components of a Process

What is stored in the stack of a process?

Temporary data like method or function parameters, return address, and local variables.

p.2
Process Life Cycle

When does a process enter the 'Waiting' state?

When it needs to wait for a resource, such as user input or a file.

p.15
Inter-Process Communication (IPC)

What role do files play in inter-process communication?

Files serve as data records that multiple processes can access as needed.

p.14
Inter-Process Communication (IPC)

Why is synchronization important in IPC?

To ensure that multiple processes are coordinated and do not interfere with each other.

p.7
Process Life Cycle

What happens during the loading program code step?

The program code and data associated with the process are loaded into the allocated memory space.

p.8
Process Life Cycle

What happens to a blocked process in the operating system?

It is removed from the CPU's execution queue and placed in a waiting queue associated with the resource it is waiting for.

p.2
Process Control Block (PCB)

What information does a PCB store?

Process state, process privileges, process ID, pointer to parent process, and program counter.

p.12
Definition and Concept of Process

What are the four types of needs for cooperating processes in an OS?

Information Sharing, Computation Speed, Convenience, and Modularity.

p.5
Process Scheduling in Operating Systems

Why is swapping required in process scheduling?

To have a great blend of operations in the ready queue.

p.21
CPU Scheduling Algorithms

What are the two main types of CPU scheduling methods?

Preemptive Scheduling and Non-Preemptive Scheduling.

p.19
Threads and Multithreading

What is a disadvantage of the one-to-one threading model?

Creating a user thread requires the corresponding kernel thread.

p.23
CPU Scheduling Algorithms

What is a key characteristic of the Round Robin scheduling method?

It is simple, easy to use, and starvation-free as all processes get balanced CPU allocation.

p.23
CPU Scheduling Algorithms

Why is Round Robin considered a widely used method in CPU scheduling?

Because it provides fair CPU allocation to all processes.

p.18
Threads and Multithreading

How does communication between threads differ from communication between processes?

Multiple-thread communication is simpler because threads share the same address space.

p.14
Inter-Process Communication (IPC)

How does synchronization work in a web server?

It ensures that only one process handles a request at a time.

p.18
Threads and Multithreading

What does the many-to-many model do?

It multiplexes any number of user threads onto an equal or smaller number of kernel threads.

p.14
Inter-Process Communication (IPC)

What does Interprocess Communication (IPC) provide?

A mechanism to exchange data and information across multiple processes.

p.7
Components of a Process

What resources does the operating system allocate for a new process?

Memory space, a unique process identifier (PID), a process control block (PCB), and other essential data structures.

p.12
Inter-Process Communication (IPC)

How do processes A and B communicate in the given example?

Process A sends a message to the kernel, which then sends it to Process B.

p.4
Definition and Concept of Process

What is a software package?

A collection of computer programs, libraries, and related data.

p.22
CPU Scheduling Algorithms

What problem can arise from using SJF?

Starvation, if shorter processes keep coming.

p.1
Components of a Process

What is included in the data section of a process?

Global and static variables.

p.9
Process Scheduling in Operating Systems

What is priority-based preemption?

Processes with higher priorities are given preference in execution, allowing the OS to preempt lower-priority processes.

p.2
Process Control Block (PCB)

What is the purpose of the process ID (PID) in a PCB?

To uniquely identify each process in the operating system.

p.12
Definition and Concept of Process

How does information sharing benefit cooperating processes?

It allows different processes to access the same file concurrently, making execution more efficient.

p.7
Process Life Cycle

What state is a new process typically in after setup?

A 'ready' or 'waiting' state.

p.8
Inter-Process Communication (IPC)

What do processes often wait for in synchronization?

Synchronization primitives like semaphores or mutexes.

p.4
Types of Process Schedulers

What is the main goal of the Long-Term Scheduler?

To select the best mix of IO and CPU bound processes from the pool of jobs.

p.3
Process Life Cycle

What happens in the RUNNING state?

Execution of the instructions.

p.14
Inter-Process Communication (IPC)

What is mutual exclusion in IPC?

A mechanism that ensures only one process can access a shared resource at a time.

p.6
Process Life Cycle

What does process state management involve?

Tracking the current state of each process (e.g., running, waiting, terminated).

p.3
Process Life Cycle

What are the different states a process can be in?

NEW, READY, RUNNING, WAITING, TERMINATED.

p.16
Threads and Multithreading

How can threads be visualized in applications like browsers?

Many tabs in a browser can be viewed as threads.

p.21
CPU Scheduling Algorithms

What are the characteristics of the FCFS scheduling algorithm?

FCFS supports both non-preemptive and preemptive scheduling, executes tasks on a first-come, first-serve basis, and is easy to implement but not very efficient.

p.13
Inter-Process Communication (IPC)

What risk does modularity pose to data integrity in cooperating processes?

It can lead to data damage due to improper handling of shared data.

p.13
Inter-Process Communication (IPC)

What sensitive issue can arise during information sharing among cooperating processes?

Sensitive user data may be unintentionally shared with other processes.

p.4
Process Scheduling in Operating Systems

What is the purpose of a process scheduler?

To implement the virtual machine so that each process appears to be running on its own computer to the user.

p.15
Inter-Process Communication (IPC)

What happens to messages in a message queue?

Messages are stored in the queue until their recipient retrieves them.

p.8
Inter-Process Communication (IPC)

What is a common example of a blocking operation?

I/O operations, where a process may be blocked until requested data is ready.

p.9
Process Scheduling in Operating Systems

What is interrupt-driven preemption?

Preemption triggered by hardware or software interrupts, such as a hardware device interrupt or a system call request.

p.17
Threads and Multithreading

What happens if a kernel thread performs a blocking operation?

The execution of other kernel threads can continue.

p.22
CPU Scheduling Algorithms

How does Round Robin differ from First Come First Serve?

It is the preemptive version of FCFS, focusing on time-sharing.

p.13
Inter-Process Communication (IPC)

What are the two types of processes in a system?

Independent processes and cooperating processes.

p.23
CPU Scheduling Algorithms

What is the Shortest Remaining Time First (SRTF) scheduling method?

It is the preemptive version of Shortest Job First, allocating the CPU to the job closest to completion.

p.23
CPU Scheduling Algorithms

What is a disadvantage of the SRTF scheduling method?

It has the potential for process starvation, as long processes may be held off indefinitely.

p.19
Threads and Multithreading

What advantage does the one-to-one model provide over the many-to-one model?

It allows another thread to run when a thread makes a blocking system call and supports parallel execution on multiprocessors.

p.2
Process Control Block (PCB)

What does the program counter in a PCB refer to?

It points to the address of the process's next instruction.

p.21
CPU Scheduling Algorithms

What is the First Come First Serve (FCFS) scheduling algorithm?

FCFS is the simplest scheduling algorithm where the process that requests the CPU first is allocated the CPU first, implemented using a FIFO queue.

p.20
Process Scheduling in Operating Systems

What is 'turnaround time' in CPU scheduling?

The time difference between completion time and arrival time of a process.

p.9
Process Life Cycle

What does termination of a process refer to?

The orderly and controlled cessation of a running process's execution.

p.23
CPU Scheduling Algorithms

What happens to newly created processes in Round Robin scheduling?

They are added to the end of the ready queue.

p.7
Process Life Cycle

What occurs during the execution phase of a process?

The CPU executes the instructions of the selected process, utilizing system resources.

p.13
Inter-Process Communication (IPC)

What is a potential disadvantage of cooperating processes?

Deadlock can occur if a consumer process waits for a message that is not received.

p.14
Inter-Process Communication (IPC)

What is the purpose of semaphores in IPC?

To count the number of times a shared resource is being used and prevent overuse.

p.9
Process Scheduling in Operating Systems

How does preemption ensure fairness and responsiveness?

It prevents any process from being unfairly blocked from accessing CPU time, allowing even low-priority processes to execute.

p.17
Threads and Multithreading

Give an example of an operating system that uses kernel threads.

Window Solaris.

p.7
Process Control Block (PCB)

What is context switching?

Saving the state of the currently running process into the process control block (PCB) before executing a new process.

p.9
Process Life Cycle

When does process termination occur?

When a process has completed its task, is no longer needed, or when an error occurs.

p.14
Inter-Process Communication (IPC)

What role does synchronization play in distributed systems?

It ensures messages are sent and received in the correct order.

Study Smarter, Not Harder
Study Smarter, Not Harder