What is the many-to-one threading model?
A model that maps many user-level threads to a single kernel-level thread, with thread management done in user space.
What is a disadvantage of the many-to-one model?
When a thread makes a blocking system call, the entire process will be blocked.
1/214
p.19
Threads and Multithreading

What is the many-to-one threading model?

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

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.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 are the five states a process can be in during its life cycle?

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

p.8
Scheduling Algorithms

What is the role of scheduling algorithms in process execution?

They determine the order and duration of process execution.

p.11
Definition and Concept of Process

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.23
CPU Scheduling Algorithms

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

Because it is fair, allowing every process an equal share of CPU.

p.16
Threads and Multithreading

Why are threads preferred over processes in certain scenarios?

It takes less time to create, share common data, and terminate a thread compared to a process.

p.23
CPU Scheduling Algorithms

How does the Round Robin method handle newly created processes?

It adds them to the end of the ready queue.

p.22
CPU Scheduling Algorithms

What is the main characteristic of Priority Scheduling?

Schedules tasks based on priority.

p.22
CPU Scheduling Algorithms

What problem can arise with SJF scheduling?

Starvation, if shorter processes keep coming.

p.13
Inter-Process Communication (IPC)

What is one advantage of cooperating processes?

They allow data and information sharing, leading to faster execution.

p.2
Process Life Cycle

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

The process is being created.

p.8
Resource Allocation

How does the dispatching operation allocate CPU time to processes?

Based on the scheduling algorithm and their priority.

p.10
Inter-Process Communication (IPC)

What are cooperating processes?

Processes that can affect or get affected by other processes under 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.16
Threads and Multithreading

Can you give examples of user-level threads?

Java threads, POSIX threads, etc.

p.11
Inter-Process Communication (IPC)

How do cooperating processes communicate through sharing?

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

p.21
CPU Scheduling Algorithms

What are the characteristics of FCFS?

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

p.8
Resource Allocation

Why are blocking operations important for resource management?

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

p.3
Process Control Block (PCB)

What does IO status information include?

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

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.

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.13
Inter-Process Communication (IPC)

What is required for achieving computation speed in a system?

Multiple CPUs and input/output devices.

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.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.14
Inter-Process Communication (IPC)

What does Interprocess Communication (IPC) provide?

A mechanism to exchange data and information across multiple processes.

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.15
Inter-Process Communication (IPC)

How do sockets facilitate inter-process communication?

They allow data to be sent between processes on the same computer or across different computers on the same network.

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.12
Inter-Process Communication (IPC)

What is the need for cooperating processes in an operating system?

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

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.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.2
Process Control Block (PCB)

What is a Process Control Block (PCB)?

A data structure managed by the OS that stores all information required to track a process.

p.15
Inter-Process Communication (IPC)

How do message queues function in inter-process communication?

Multiple processes can read and write data to a message queue, with messages stored until retrieved by their recipient.

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.13
Inter-Process Communication (IPC)

Why do we need cooperating processes in an operating system?

To ensure that different processes can communicate and run smoothly without interrupting each other.

p.19
Threads and Multithreading

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

OS/2, Windows NT, and Windows 2000.

p.16
Threads and Multithreading

What happens when a user-level thread performs a blocking operation?

The whole process is blocked.

p.1
Components of a Process

What attributes are held by a process?

Hardware status, RAM, CPU, and other attributes.

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.20
Process Scheduling in Operating Systems

Why is effective CPU scheduling important in multiprogramming?

To improve resource utilization and avoid CPU idleness.

p.3
Process Control Block (PCB)

What does memory management information include?

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

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.16
Threads and Multithreading

What is a lightweight process?

A thread is often referred to as a lightweight process.

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.16
Threads and Multithreading

What are the two types of threads in operating systems?

Kernel level thread and User-level thread.

p.15
Inter-Process Communication (IPC)

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

A socket is the endpoint for sending or receiving data in a network.

p.10
Process Life Cycle

What are the two modes of process execution?

Serial mode and parallel mode.

p.2
Process Life Cycle

What happens in the 'Terminated' or 'Exit' state?

The process waits for removal from main memory after execution or termination.

p.15
Inter-Process Communication (IPC)

What is shared memory in the context of inter-process communication?

Shared memory is memory that can be accessed simultaneously by multiple processes for communication.

p.21
CPU Scheduling Algorithms

What are the advantages of FCFS?

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

p.22
CPU Scheduling Algorithms

How does Round Robin relate to First Come First Serve?

It is the preemptive version of the First Come First Serve CPU Scheduling algorithm.

p.14
Inter-Process Communication (IPC)

What role does synchronization play in a distributed system?

To ensure messages are sent and received in the correct order.

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.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.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.10
Process Life Cycle

What happens to resources when a process terminates?

The OS releases the resources allocated to the process, preventing resource leaks.

p.5
Process Scheduling in Operating Systems

What does the Medium-Term scheduler handle?

Switched-out processes.

p.10
Process Life Cycle

Why does the parent process need to be notified during termination?

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

p.13
Inter-Process Communication (IPC)

How does modularity benefit cooperating processes?

It breaks complex tasks into modules, improving efficiency and speed.

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.3
Process Control Block (PCB)

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

Various CPU registers.

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.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.23
CPU Scheduling Algorithms

What is a benefit of SRTF regarding overhead?

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

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.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.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.3
Process Life Cycle

What does the NEW state represent?

The creation of the process.

p.14
Inter-Process Communication (IPC)

How does synchronization work in a web server?

To ensure that only one process handles a request at a time.

p.9
Process Scheduling in Operating Systems

What is the role of time sharing in preemption?

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

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.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.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.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.5
Process Scheduling in Operating Systems

What is the operation called when a Medium-Term scheduler stops a process?

Swapping.

p.17
Threads and Multithreading

What is one advantage of user-level threads?

They can be more easily implemented than kernel threads.

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.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.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.15
Inter-Process Communication (IPC)

What are signals in inter-process communication?

Signals are system messages sent from one process to another, typically used for remote commands rather than data transfer.

p.13
Inter-Process Communication (IPC)

What is process starvation in the context of cooperating processes?

It occurs when a process has to wait for a message from a previous process.

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.1
Components of a Process

What does the text section of a process contain?

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

p.17
Threads and Multithreading

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

The entire process is blocked.

p.1
Components of a Process

What is included in the data section of a process?

Global and static variables.

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.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 does the READY state indicate?

The process is waiting to be assigned to any processor.

p.7
Process Life Cycle

What state is a new process typically in after setup?

'Ready' or 'waiting' state, indicating it is prepared for execution but hasn't started running yet.

p.3
Process Life Cycle

What does the TERMINATED state signify?

A process has completed execution.

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.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.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.5
Process Scheduling in Operating Systems

What happens when running state processes require IO time?

The state must be changed from running to waiting.

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.4
Definition and Concept of Process

What is a computer program?

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

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.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.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.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 is turnaround time?

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

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.20
Process Scheduling in Operating Systems

What is the significance of CPU utilization in scheduling?

It ensures that the CPU is utilized to its maximum, ideally 100% of the time.

p.4
Types of Process Schedulers

What is a Long-Term Scheduler?

It selects processes from the pool and maintains them in the primary memory's ready queue.

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.7
Process Scheduling in Operating Systems

What is context switching in the dispatching operation?

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

p.6
Process Scheduling in Operating Systems

What operation involves managing the execution order of processes?

Process Scheduling.

p.6
Process Scheduling in Operating Systems

What does process priority management involve?

Determining the order in which processes are scheduled based on their priority levels.

p.19
Threads and Multithreading

What is the many-to-many threading model?

A model where multiple user-level threads are multiplexed with multiple kernel-level threads, allowing parallel execution on multiprocessor machines.

p.16
Threads and Multithreading

How many threads can exist within a single process?

More than one thread can exist inside a process.

p.23
CPU Scheduling Algorithms

What type of scheduling is Round Robin classified as?

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

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.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

What is a key advantage of kernel-level threads?

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

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.21
CPU Scheduling Algorithms

What are the two main types of CPU scheduling methods?

Preemptive Scheduling and Non-Preemptive Scheduling.

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.8
Process Control Block (PCB)

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.

p.17
Threads and Multithreading

What does user-level thread representation include?

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

p.4
Process Scheduling in Operating Systems

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

To select a processor process based on a scheduling method and remove a processor process.

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 it.

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.17
Threads and Multithreading

What is a key feature of kernel-level threads?

The kernel recognizes and manages all threads.

p.3
Process vs Program

What is the difference between a program and a process?

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

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.6
Process Life Cycle

What does process synchronization ensure?

That multiple processes can operate without interfering with each other.

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.22
CPU Scheduling Algorithms

What is a significant advantage of SJF?

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

p.15
Inter-Process Communication (IPC)

What is a pipe in inter-process communication?

A pipe is a unidirectional data channel used for communication between processes.

p.22
CPU Scheduling Algorithms

How can the starvation problem in SJF be addressed?

Using the concept of aging.

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.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.23
CPU Scheduling Algorithms

What is a key advantage of the SRTF algorithm?

It processes jobs faster than the Shortest Job First (SJF) algorithm.

p.4
Definition and Concept of Process

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

A process is a dynamic instance of a computer program.

p.8
Process Control Block (PCB)

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

Blocked or waiting.

p.22
CPU Scheduling Algorithms

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

It takes the place of the less priority process, which is then suspended.

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.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.4
Process Scheduling in Operating Systems

Why is process scheduling crucial in a multiprogramming operating system?

It allows multiple processes to share the CPU using temporal multiplexing.

p.7
Process Life Cycle

What initiates the process creation in an operating system?

A request from a user or a system component.

p.14
Inter-Process Communication (IPC)

How is synchronization used in a database?

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

p.20
Process Scheduling in Operating Systems

What does fair allocation of CPU mean?

Ensuring that all processes get a fair share of CPU time without starvation.

p.4
Types of Process Schedulers

What is a Short-Term Scheduler?

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

p.7
Process Life Cycle

What is performed during the initialization stage of a process?

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

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.13
Inter-Process Communication (IPC)

What is the benefit of dividing a task into several subtasks?

It improves computation speed by allowing parallel execution.

p.19
Threads and Multithreading

What is the one-to-one threading model?

A model where each user-level thread corresponds to a single kernel-level thread, allowing more concurrency.

p.19
Threads and Multithreading

What is a key advantage of the one-to-one model?

It allows another thread to run when a thread makes a blocking system call.

p.12
Process Life Cycle

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

Deadlock.

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 processor to the job closest to completion.

p.14
Inter-Process Communication (IPC)

What are some essential tasks of IPC?

Sharing data, coordinating activities, managing resources, and achieving modularity.

p.8
Process Control Block (PCB)

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 role do files play in inter-process communication?

Files serve as data records that can be accessed by multiple processes as needed.

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.10
Process Life Cycle

How does serial mode differ from parallel mode in process execution?

In serial mode, processes execute one after the other; in parallel mode, multiple processes execute simultaneously.

p.4
Definition and Concept of Process

What is a software package?

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

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.14
Inter-Process Communication (IPC)

What are barriers in IPC?

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

p.20
Process Scheduling in Operating Systems

How is waiting time calculated?

Waiting Time = Turnaround Time - Burst Time.

p.17
Threads and Multithreading

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

Context switch time is longer in kernel threads.

p.7
Process Scheduling in Operating Systems

What happens after the context switch is complete?

The OS loads the saved state of the selected process from its PCB and restores the program counter and CPU registers.

p.6
Process Life Cycle

What does process execution refer to?

The actual running of a process on the CPU.

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.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.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.18
Threads and Multithreading

What is a disadvantage of kernel-level threads?

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

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.13
Inter-Process Communication (IPC)

What risk is associated with data sharing among cooperating processes?

It may lead to data damage or unintended sharing of sensitive information.

p.3
Process Life Cycle

What are the different states a process can be in?

NEW, READY, RUNNING, WAITING, TERMINATED.

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.18
Threads and Multithreading

What are the three types of multithreading models?

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

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.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.16
Threads and Multithreading

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

It manages user-level threads as if they are single-threaded processes.

p.3
Process Control Block (PCB)

What type of information is required for process scheduling?

Process priority and additional scheduling information.

p.13
Inter-Process Communication (IPC)

What is a disadvantage of cooperating processes related to communication?

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

p.23
CPU Scheduling Algorithms

How does SRTF handle context switching compared to SJF?

SRTF performs context switches more frequently, consuming valuable CPU time.

p.18
Threads and Multithreading

What are the components of a thread?

Program counter, register set, and stack space.

p.22
CPU Scheduling Algorithms

What is the main feature of the Round Robin scheduling algorithm?

Each process is cyclically assigned a fixed time slot.

p.8
Inter-Process Communication (IPC)

What is a common example of a blocking operation?

I/O operations, where a process waits for data from an I/O device.

p.21
CPU Scheduling Algorithms

What are the disadvantages of FCFS?

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

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.

p.7
Process Life Cycle

What happens during the loading program code stage?

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

p.17
Threads and Multithreading

What is an example of an operating system that uses kernel threads?

Window Solaris.

p.3
Process Life Cycle

What happens in the RUNNING state?

Execution of the instructions.

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.6
Process Life Cycle

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

Process Creation.

p.9
Process Scheduling in Operating Systems

What can trigger interrupt-driven preemption?

Hardware or software interrupts, such as those generated by a hardware device or a system call request.

p.12
Inter-Process Communication (IPC)

How does information sharing benefit cooperating processes?

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

p.17
Threads and Multithreading

What is a disadvantage of user-level threads?

They lack coordination between the thread and the kernel.

p.2
Process Control Block (PCB)

What information does a PCB store about a process?

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

p.8
Inter-Process Communication (IPC)

What do processes wait for in synchronization operations?

Synchronization primitives like semaphores or mutexes.

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.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.17
Threads and Multithreading

What happens if a kernel thread performs a blocking operation?

The execution of other kernel threads can continue.

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.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, essential for efficient multitasking and resource allocation.

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.6
Process Life Cycle

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

Process Termination.

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 or exception occurs.

p.13
Inter-Process Communication (IPC)

What are the two types of processes in a system?

Independent processes and cooperating processes.

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.20
Process Scheduling in Operating Systems

What is burst time?

The time required by a process for CPU execution.

p.3
Process Life Cycle

What does the WAITING state mean?

The process is waiting for some event to occur.

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.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.6
Process Life Cycle

What is context switching in process operations?

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

p.9
Process Life Cycle

What does the termination of a process involve?

The orderly and controlled cessation of a running process's execution, including cleanup and resource reclamation.

p.6
Inter-Process Communication (IPC)

What is Inter-Process Communication (IPC)?

A mechanism that allows processes to communicate and synchronize their actions.

p.6
Process Life Cycle

What is the purpose of process state management?

To keep track of the current state of each process (e.g., running, waiting, terminated).

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.6
Process Life Cycle

What is process accounting and monitoring?

Tracking resource usage and performance metrics of processes.

Study Smarter, Not Harder
Study Smarter, Not Harder