Recent questions tagged context-switch

4 4 votes
1 1 answer
228
228 views
A system has two processes, $P_1$ and $P_2$.$P_1$ is currently running. $P_2$ is ready. The operating system uses preemptive Round Robin scheduling. $P_1$'s scheduling qu...
1 1 vote
1 1 answer
253
253 views
Which of the following statements about context switching are correct?When switching between two threads, the registers, stack pointer, and program counter of the outgoin...
2 2 votes
1 1 answer
258
258 views
Which of the following statements are correct?With kernel-level threads, if one thread of a process blocks, all the threads of that process will also be blocked. A lock i...
3 3 votes
1 1 answer
200
200 views
Which of the following statements are correct?Threads that are part of the same process share the same stack pointer. Threads that are part of the same process share the ...
1 1 vote
0 0 answers
517
517 views
Source: IIT Bombay Answer Given: B. In option A., "servicing a disk interrupt, that results in another process being marked as ready / runnable" won't lead to a context s...
2 2 votes
1 1 answer
906
906 views
Can anyone explain how it will be done as my solution and the DPP solution don't match.Answer = C ( acc to dpp )And, according to my Gantt Chart the total completion time...
0 0 votes
1 1 answer
1.1k
1.1k views
Consider the process information for set of processes, assuming the context switch delay to be 0, calculate the average waiting time, average turnaround, average response...
0 0 votes
0 0 answers
308
308 views
Consider a process P in xv6 that invokes the wait system call. Which of the following statements is/are true? If P does not have any zombie children, then the wait system...
3 3 votes
4 4 answers
1.5k
1.5k views
Consider a uniprocessor system with n processes in the ready queue. Round robin scheduling with time quantum x is used for process scheduling. Assume each process require...
91 91 votes
5 5 answers
29.4k
29.4k views
​​​​Consider a process $\text{P}$ running on a $\text{CPU}$. Which one or more of the following events will always trigger a context switch by the $\text{OS}$ that result...
8 8 votes
1 1 answer
999
999 views
Consider the context switch of a CPU from the context of process P1 to that of process P2.Consider the following two events in the chronological order of the events durin...
1 1 vote
1 answers 1 answer
3.6k
3.6k views
Consider arrival time and execution time for the following process:-P.id A.T B.T1 2 52 7 93 8 34 10 4 Ass...
3 3 votes
1 answers 1 answer
1.9k
1.9k views
Suppose only a process P1 is executing, using Round Robin scheduling. After the time slice expires, the same process comes back into execution. This could be considered a...
1 1 vote
1 1 answer
1.6k
1.6k views
Consider the following segment:Note : Assume the count = count + 1; will execute in ‘3’ different instructions.Where, m[count] refers to memory value of count variable.Pr...
0 0 votes
0 0 answers
381
381 views
1. Write clearly the dinning philosopher and reader-writer classical problem of process synchronization
1 1 vote
1 1 answer
2.5k
2.5k views
Consider a process P running on a system with non-preemptive Kernel design. Consider following actions by P :(i) A blocking system call.(ii) Servicing a timer interrupt.(...
0 0 votes
1 1 answer
2.7k
2.7k views
Lets consider one situation where,OS is scheduling processes(P1,P2,P3...Pn) with Round Robin method and current running process is P1 and next scheduled process in queue ...
1 1 vote
0 0 answers
769
769 views
Does non preemptive CPU scheduling needs hardware support.kindly explain.
1 1 vote
1 1 answer
2.2k
2.2k views
in round robin algorithm if a process with burst time = 10 arrived at t=0 and time quantum is 2 units, context switch time is 2 units . Then completion time of the proces...
0 0 votes
2 2 answers
1.9k
1.9k views
The time taken to switch between user and kernel modes of execution be $t1$ while the time taken to switch between two processes be $t2$. Which of the following is TRUE?$...
0 0 votes
1 1 answer
2.9k
2.9k views
Explain how time quantum value and context switching time affect each other, in a round-robin scheduling algorithm.
1 1 vote
3 3 answers
1.2k
1.2k views
Virtual memory increases context switching overhead ? Why why not ?
1 1 vote
1 1 answer
2.3k
2.3k views
Consider the following statements given below:S1: User-level threads switching does not require context switching.S2: Virtual memory increases the context switching overh...
2 2 votes
2 2 answers
2.0k
2.0k views
Consider the context switch of a CPU from the context of process $P1$ to that of process $P2$. Consider the following two events in the chronological order of the events ...
1 1 vote
1 1 answer
2.6k
2.6k views
Q.Consider the processes P1, P2, P3, P4 whose arrival times are 0, 1, 2, 3 and Burst times are 5, 2, 13, 7. If the Context Switching time is 1 unit (ms), what is the aver...
1 1 vote
0 0 answers
1.5k
1.5k views
What is the least number of context switching required for 'n' number of processes?
0 0 votes
0 0 answers
2.6k
2.6k views
What is the difference between context switch and preemption?In case of critical section between context switch and preemption which one is possible ?And if so happens th...
8 8 votes
3 3 answers
4.5k
4.5k views
S1: Context Switching occurs only in kernel mode. :TRUES2: Context Switching in user mode is faster as compared to context switching in kernel mode. : TRUEIf Context Swit...