Podcast
Questions and Answers
Child processes inherit UNIX ordinary pipes from their parent process because:
Child processes inherit UNIX ordinary pipes from their parent process because:
A blocking send() and blocking receive() is known as a(n) _________________.
A blocking send() and blocking receive() is known as a(n) _________________.
Assume the shared buffer is implemented as a circular array with two logical pointers: in and out. The variable in points to the next free position in the buffer; out points to the first full position in the buffer. Which of the following is true?
Assume the shared buffer is implemented as a circular array with two logical pointers: in and out. The variable in points to the next free position in the buffer; out points to the first full position in the buffer. Which of the following is true?
Imagine that a host with IP address 150.55.66.77 wishes to download a file from the web server at IP address 202.28.15.123. Select a valid socket pair for a connection between this pair of hosts.
Imagine that a host with IP address 150.55.66.77 wishes to download a file from the web server at IP address 202.28.15.123. Select a valid socket pair for a connection between this pair of hosts.
Signup and view all the answers
Which of the following statements is true?
Which of the following statements is true?
Signup and view all the answers
Under indirect communication, each process that wants to communicate must explicitly name the recipient or sender of the communication.
Under indirect communication, each process that wants to communicate must explicitly name the recipient or sender of the communication.
Signup and view all the answers
The producer-consumer problem using a bounded buffer cannot be solved using shared memory.
The producer-consumer problem using a bounded buffer cannot be solved using shared memory.
Signup and view all the answers
External data representation (XDR) is used when transmitting data between different machines using an RPC (remote procedure call).
External data representation (XDR) is used when transmitting data between different machines using an RPC (remote procedure call).
Signup and view all the answers
_____ is not considered a challenge when designing applications for multicore systems.
_____ is not considered a challenge when designing applications for multicore systems.
Signup and view all the answers
In a multithreaded server architecture, which of the following is used to service a new user request?
In a multithreaded server architecture, which of the following is used to service a new user request?
Signup and view all the answers
Multiple threads within a process _____.
Multiple threads within a process _____.
Signup and view all the answers
Amdahl's Law describes performance gains for applications with both a serial and parallel component.
Amdahl's Law describes performance gains for applications with both a serial and parallel component.
Signup and view all the answers
Using n threads within a single process is more efficient than using n separate processes because the threads share the same code and data.
Using n threads within a single process is more efficient than using n separate processes because the threads share the same code and data.
Signup and view all the answers
In the many-to-many multi-threading model, which of following is true regarding the number of user-level threads and the number of kernel-level threads?
In the many-to-many multi-threading model, which of following is true regarding the number of user-level threads and the number of kernel-level threads?
Signup and view all the answers
The _____ model maps each user-level thread to one kernel thread.
The _____ model maps each user-level thread to one kernel thread.
Signup and view all the answers
A ____ provides an API for creating and managing threads.
A ____ provides an API for creating and managing threads.
Signup and view all the answers
In a many-to-one thread mapping system, suppose process B has two user threads, of which thread 2 is running. If user thread 2 makes a blocking I/O system call, which of the following is true?
In a many-to-one thread mapping system, suppose process B has two user threads, of which thread 2 is running. If user thread 2 makes a blocking I/O system call, which of the following is true?
Signup and view all the answers
Which of the following is a function provided by Pthreads API for constructing a multithreaded program?
Which of the following is a function provided by Pthreads API for constructing a multithreaded program?
Signup and view all the answers
Virtually all contemporary operating systems support kernel threads.
Virtually all contemporary operating systems support kernel threads.
Signup and view all the answers
One-to-one model provides more concurrency than the many-to-one model by allowing another thread to run when a thread makes a blocking system call.
One-to-one model provides more concurrency than the many-to-one model by allowing another thread to run when a thread makes a blocking system call.
Signup and view all the answers
To associate each thread created using an implicit technique such as a thread pool, with its unique transaction identifier, we could use ____?
To associate each thread created using an implicit technique such as a thread pool, with its unique transaction identifier, we could use ____?
Signup and view all the answers
Which are included in the context of a thread?
Which are included in the context of a thread?
Signup and view all the answers
Which of the following information is shared when the flag CLONE_VM is set up in the Linux clone() system call?
Which of the following information is shared when the flag CLONE_VM is set up in the Linux clone() system call?
Signup and view all the answers
Which of the following is a synchronous signal?
Which of the following is a synchronous signal?
Signup and view all the answers
Which of the following is an asynchronous signal?
Which of the following is an asynchronous signal?
Signup and view all the answers
Which of the following is a method for implicit threading?
Which of the following is a method for implicit threading?
Signup and view all the answers
Deferred cancellation is preferred over asynchronous cancellation.
Deferred cancellation is preferred over asynchronous cancellation.
Signup and view all the answers
Thread-local storage is inherently equivalent to local variables.
Thread-local storage is inherently equivalent to local variables.
Signup and view all the answers
When fork() is invoked, it is passed a set of flags that determine how much sharing is to take place between the parent and child tasks.
When fork() is invoked, it is passed a set of flags that determine how much sharing is to take place between the parent and child tasks.
Signup and view all the answers
____ is the number of processes that are completed per time unit.
____ is the number of processes that are completed per time unit.
Signup and view all the answers
Scheduler selects from among the processes in memory that are ready to execute, and allocates the CPU to one of them. CPU scheduling decisions may take place when a process:
- Switches from running to waiting state
- Switches from running to ready state
- Switches from waiting to ready
- Terminates
Which of those cases would happen for a non-preemptive scheduler?
Scheduler selects from among the processes in memory that are ready to execute, and allocates the CPU to one of them. CPU scheduling decisions may take place when a process:
- Switches from running to waiting state
- Switches from running to ready state
- Switches from waiting to ready
- Terminates Which of those cases would happen for a non-preemptive scheduler?
Signup and view all the answers
Assume process P0 and P1 are the process before and after a context switch, and PCB0 and PCB1 are respectively their process control block. Which of the following time units are included inside the dispatch latency?
Assume process P0 and P1 are the process before and after a context switch, and PCB0 and PCB1 are respectively their process control block. Which of the following time units are included inside the dispatch latency?
Signup and view all the answers
Which of the following criteria is more important for an interactive system?
Which of the following criteria is more important for an interactive system?
Signup and view all the answers
Which of the following criteria is more important from the point of view of a particular process?
Which of the following criteria is more important from the point of view of a particular process?
Signup and view all the answers
A typical process has a large number of short CPU bursts and a small number of long CPU bursts.
A typical process has a large number of short CPU bursts and a small number of long CPU bursts.
Signup and view all the answers
A typical process has a large number of short CPU bursts and a small number of long CPU bursts.
A typical process has a large number of short CPU bursts and a small number of long CPU bursts.
Signup and view all the answers
In a CPU-scheduling algorithm, the waiting time represents the time a process spends waiting for I/O devices.
In a CPU-scheduling algorithm, the waiting time represents the time a process spends waiting for I/O devices.
Signup and view all the answers
The first-come, first-served (FCFS) scheduling algorithm is always non-preemptive.
The first-come, first-served (FCFS) scheduling algorithm is always non-preemptive.
Signup and view all the answers
The Shortest-Job-First (SJF) scheduling algorithm gives the minimum average waiting time for a given set of processes.
The Shortest-Job-First (SJF) scheduling algorithm gives the minimum average waiting time for a given set of processes.
Signup and view all the answers
_____ attempts to keep a thread running on the same processor.
_____ attempts to keep a thread running on the same processor.
Signup and view all the answers
The Linux CFS scheduler identifies _____________ as the interval of time during which every runnable task should run at least once.
The Linux CFS scheduler identifies _____________ as the interval of time during which every runnable task should run at least once.
Signup and view all the answers
The two general approaches to load balancing in multi-processor CPU scheduling are __________ and ____________.
The two general approaches to load balancing in multi-processor CPU scheduling are __________ and ____________.
Signup and view all the answers
What is the numeric priority of a Windows thread in the BELOW_NORMAL_PRIORITY_CLASS with NORMAL relative priority?
What is the numeric priority of a Windows thread in the BELOW_NORMAL_PRIORITY_CLASS with NORMAL relative priority?
Signup and view all the answers
In the Linux CFS scheduler, the task with smallest value of vruntime is considered to have the highest priority.
In the Linux CFS scheduler, the task with smallest value of vruntime is considered to have the highest priority.
Signup and view all the answers
Load balancing algorithms have no impact on the benefits of processor affinity.
Load balancing algorithms have no impact on the benefits of processor affinity.
Signup and view all the answers
Load balancing is typically only necessary on systems with a common run queue.
Load balancing is typically only necessary on systems with a common run queue.
Signup and view all the answers
Solaris and Windows assign higher-priority threads/tasks longer time quantums and lower-priority tasks shorter time quantums.
Solaris and Windows assign higher-priority threads/tasks longer time quantums and lower-priority tasks shorter time quantums.
Signup and view all the answers
Which of following is generally true of round-robin scheduling relative to FCFS?
Which of following is generally true of round-robin scheduling relative to FCFS?
Signup and view all the answers
If a shared global variable x is initialized to 1, two threads execute concurrently statements "x++" and "x--" respectively. What are the possible values of x after the execution of the statements?
If a shared global variable x is initialized to 1, two threads execute concurrently statements "x++" and "x--" respectively. What are the possible values of x after the execution of the statements?
Signup and view all the answers
Assume count is a variable name, which of the following operations is atomic?
Assume count is a variable name, which of the following operations is atomic?
Signup and view all the answers
Which is true about race conditions
Which is true about race conditions
Signup and view all the answers
Instructions from different processes can be interleaved when interrupts are allowed.
Instructions from different processes can be interleaved when interrupts are allowed.
Signup and view all the answers
Race conditions can result in corrupted values of shared data.
Race conditions can result in corrupted values of shared data.
Signup and view all the answers
A(n) _______ refers to where a process is accessing/updating shared data.
A(n) _______ refers to where a process is accessing/updating shared data.
Signup and view all the answers
_____ is not a technique used for handling critical sections in operating system kernels.
_____ is not a technique used for handling critical sections in operating system kernels.
Signup and view all the answers
Which of the following critical-section problem's requirements ensures only one process is active in its critical section at a time?
Which of the following critical-section problem's requirements ensures only one process is active in its critical section at a time?
Signup and view all the answers
Which of the following critical-section problem's requirements limits the amount of time a program will wait before it can enter its critical section?
Which of the following critical-section problem's requirements limits the amount of time a program will wait before it can enter its critical section?
Signup and view all the answers
Which of the following indicates that Pi can enter the critical section in Peterson's solution?
Which of the following indicates that Pi can enter the critical section in Peterson's solution?
Signup and view all the answers
Which of the following variables are shared between the processes in Peterson's solution?
Which of the following variables are shared between the processes in Peterson's solution?
Signup and view all the answers