Login
Register
@
Dark Mode
Profile
Edit my Profile
Messages
My favorites
Register
Activity
Q&A
Questions
Unanswered
Tags
Subjects
Users
Ask
Previous Years
Blogs
New Blog
Exams
Dark Mode
Recent questions tagged context-switch
1
vote
1
answer
1
#Operating system question #cpu scheduling
Consider arrival time and execution time for the following process:- P.id A.T B.T 1 2 5 2 7 9 3 8 3 4 10 4 Assume, each context switch requires 1ms time (excluding first and last context switch).then solve it using SRTF(shortest remaining time first)
Syntax-error
asked
in
Operating System
Mar 13
by
Syntax-error
403
views
operating-system
process-scheduling
context-switch
3
votes
1
answer
2
Operating System | Round Robin | Preemption & Context Switch
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 as: (Time Slice of RR is smaller than burst of P1) Only preemption Only context switch Both preemption and context switch None
Souvik33
asked
in
Operating System
Nov 26, 2022
by
Souvik33
358
views
round-robin-scheduling
operating-system
context-switch
1
vote
1
answer
3
Made Easy Test Series 2021: Operating System
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. Preemption can occur while executing the above instructions. Each of the tally function has a separate ... 15 b) Min = 2, Maximum = 15 c) Min = 1, Maximum = 15 d) Min = 15, Maximum = 15
DebRC
asked
in
Operating System
Sep 13, 2022
by
DebRC
476
views
operating-system
made-easy-test-series
context-switch
process-synchronization
0
votes
0
answers
4
Operating System
1. Write clearly the dinning philosopher and reader-writer classical problem of process synchronization
kidussss
asked
in
Operating System
Sep 1, 2022
by
kidussss
96
views
operating-system
context-switch
made-easy-test-series
ace-test-series
1
vote
1
answer
5
Made easy || Operating system
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. (iii) Exit system call. (iv) Servicing a disk interrupt, that results in another blocked process being marked as ready. Which of the above actions always result in context-switch of P?
Shreya2002
asked
in
Operating System
Aug 5, 2022
by
Shreya2002
560
views
made-easy-test-series
operating-system
system-call
context-switch
0
votes
1
answer
6
Operating System | Process Scheduling | Round Robin
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 is also P1 (this case is possible in Round Robin). ... take place in Round Robin scheduling method with quantum=3unit for the given data below. AT=Arrival Time, BT=Burst Time
anupamsworld
asked
in
Operating System
Jun 7, 2022
by
anupamsworld
596
views
operating-system
process-scheduling
round-robin-scheduling
context-switch
1
vote
1
answer
7
#Self Doubt OS CPU scheduling?
Does non preemptive CPU scheduling needs hardware support. kindly explain.
iarnav
asked
in
Operating System
Jan 12, 2022
by
iarnav
215
views
process-scheduling
operating-system
context-switch
1
vote
1
answer
8
#self doubt #round robin #cpu scheduling
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 process will be?
jayadev
asked
in
Operating System
Oct 10, 2021
by
jayadev
568
views
operating-system
process-scheduling
round-robin-scheduling
context-switch
0
votes
2
answers
9
NIELIT 2017 DEC Scientist B - Section B: 17
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? $t1>t2$ $t1=t2$ $t1<t2$ nothing can be said about the relation between $t1$ and $t2$
Lakshman Bhaiya
asked
in
Operating System
Mar 30, 2020
by
Lakshman Bhaiya
1.0k
views
nielit2017dec-scientistb
operating-system
context-switch
0
votes
1
answer
10
Andrew S. Tanenbaum (OS) Edition 4 Exercise 2 Question 42 (Page No. 177)
Explain how time quantum value and context switching time affect each other, in a round-robin scheduling algorithm.
Lakshman Bhaiya
asked
in
Operating System
Oct 25, 2019
by
Lakshman Bhaiya
1.7k
views
tanenbaum
operating-system
process-and-threads
context-switch
process-scheduling
round-robin-scheduling
descriptive
1
vote
3
answers
11
Self doubt
Virtual memory increases context switching overhead ? Why why not ?
kman30
asked
in
Operating System
Jan 19, 2019
by
kman30
567
views
operating-system
virtual-memory
context
context-switch
1
vote
1
answer
12
made_easy_test_series
Consider the following statements given below: S1: User-level threads switching does not require context switching. S2: Virtual memory increases the context switching overhead. S3: Every thread has its own registers and stack but not program counter. which of the ... I know: Context switching is faster in user level threads than kernel level threads, Then how come S1 is true?
Shivam Kasat
asked
in
Operating System
Jan 7, 2019
by
Shivam Kasat
1.7k
views
operating-system
threads
context-switch
0
votes
1
answer
13
GATE Overflow | Mock GATE | Test 1 | Question: 37
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 during the context switch. (P) The Stack Pointer (SP) shifts ... via an atomic hardware instruction The relative ordering of $P$ and $Q$ varies from one context switch to the other
Ruturaj Mohanty
asked
in
Operating System
Dec 27, 2018
by
Ruturaj Mohanty
824
views
go-mockgate-1
context-switch
operating-system
0
votes
1
answer
14
Zeal Test Series 2019: Operating System - Context Switch
Shukrayani
asked
in
Operating System
Dec 12, 2018
by
Shukrayani
468
views
operating-system
context-switch
zeal
zeal2019
1
vote
1
answer
15
Process Management
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 average waiting time if Shortest Job Next scheduling algorithm is used? (a) 7.5 (b) 6.25 (c) 6.5 (d) None
abhishek1995_cse
asked
in
Operating System
Oct 5, 2018
by
abhishek1995_cse
1.0k
views
operating-system
context-switch
memory-management
1
vote
0
answers
16
Context Switching Process Management
What is the least number of context switching required for 'n' number of processes?
anisha007
asked
in
Operating System
Sep 25, 2018
by
anisha007
524
views
operating-system
context-switch
0
votes
0
answers
17
My doubt on context switch and preemption
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 then how does it save the system from data inconsistency?
Akash Kumar Roy
asked
in
Operating System
Mar 30, 2018
by
Akash Kumar Roy
1.3k
views
operating-system
context-switch
process-scheduling
8
votes
3
answers
18
Self Doubt Context Switching Threads
S1: Context Switching occurs only in kernel mode. :TRUE S2: Context Switching in user mode is faster as compared to context switching in kernel mode. : TRUE If Context Switching occurs only in kernel mode, then how is CS in user mode faster ... switching and then change back to user mode which means more time should be taken as compared to CS in kernel mode.
_jerry
asked
in
Operating System
Jan 26, 2018
by
_jerry
2.2k
views
operating-system
context-switch
threads
2
votes
0
answers
19
CONTEXT SWITCH
Context switches can occur only in kernel mode. So for process switches first we have to move from user to kernel mode. Then we have to save the PCB of the process from which we are taking off CPU and then we have to load PCB of the required ... only for process switches, not for threads are the above-given statement and its explanation is true or not??if not please correct it!
learner_geek
asked
in
Operating System
Jan 2, 2018
by
learner_geek
967
views
operating-system
context-switch
process-scheduling
2
votes
1
answer
20
Context switch
Consider 4 processes sharing the CPU in round robin fashion. If context switch time is 1 sec , what must be the time quantum q such that the number of context switches are reduced , but at the same time each process is guaranteed to get the turn at the CPU for every 10 secs? ---------- ... ---------------------- Ans 2 or 1.5 . Is here any formula used like (n-1)q+ns explain in detail
srestha
asked
in
Operating System
Jan 2, 2018
by
srestha
1.7k
views
operating-system
context-switch
process-scheduling
round-robin-scheduling
0
votes
1
answer
21
round robin scheduling
Choose correct answer from the below options: If the following jobs are to be executed on a single processor system The jobs are arrived at time 0 and in the order a, b, c, d, e. Calculate the departure time (completion time) for job ‘a’ if scheduling is round robin with time slice 1 15 5 9 11
Parshu gate
asked
in
Operating System
Dec 10, 2017
by
Parshu gate
878
views
round-robin-scheduling
process-scheduling
context-switch
1
vote
2
answers
22
Paging ,os. Galvin book page no. 332
Paging increases context switch time how and why ???
royal shubham
asked
in
Operating System
Dec 6, 2017
by
royal shubham
5.9k
views
operating-system
paging
context-switch
6
votes
1
answer
23
CPU efficiency in round robin algorithm
Measurements of a certain system have shown that a process runs, on the average, for time T before blocking for Input/Output. Process switch requires time S which is overhead. For round robin scheduling with quantum Q, give a formula for the ... Can somebody please explain option c and hence option D with example ,Thanks and sorry if it is naive question :)
sunil sarode
asked
in
Operating System
Nov 15, 2017
by
sunil sarode
9.6k
views
round-robin-scheduling
operating-system
context-switch
process-scheduling
2
votes
1
answer
24
made easy practice booklet
charul
asked
in
Operating System
Nov 11, 2017
by
charul
208
views
operating-system
context-switch
1
vote
2
answers
25
MadeEasy Subject Test: Operating System - Process Schedule
I encountered 1 question on context switching in Made Easy test series where it is mentioned: Scheduling policy is preemptive priority. Context switch time is 1 unit. So while preempting one process and loading another should there be a 1-time unit gap or they can be done simultaneously in the gantt chart?
Tuhin Dutta
asked
in
Operating System
Oct 8, 2017
by
Tuhin Dutta
431
views
operating-system
made-easy-test-series
context-switch
process-scheduling
1
vote
1
answer
26
Context Switch
Let P1 and P2 are two processes , the Context Switch happens from P1 to P2 . Meaning : Now what happens is CPU saves the state of P1 and loads the state of P2. Who raises interrupt to cause a Context Switch? But where CPU can find all these information ? Is it available in PCB or in Stack?
Anjan
asked
in
Operating System
Sep 26, 2017
by
Anjan
230
views
operating-system
context-switch
8
votes
5
answers
27
OS:- Round Robin scheduling
If we have only one process in ready queue with burst time "m", then how many context switching will happen using round robing scheduling with time quantum q ,where q<m.Assume that dispatching the process first time is not counted as a context switch.
rahul sharma 5
asked
in
Operating System
Aug 26, 2017
by
rahul sharma 5
3.7k
views
operating-system
round-robin-scheduling
context-switch
process-scheduling
4
votes
2
answers
28
Context switches in round robin
Here what are the number of context switches ? Is it 5 or 6? Do we consider context switch before P1 (i.e during the start) ?
Xylene
asked
in
Operating System
Aug 12, 2017
by
Xylene
10.9k
views
operating-system
round-robin-scheduling
context-switch
1
vote
3
answers
29
Context Switch Question
Out of the following actions by a process running on a system the actions (i) (fill ALL possible correct choices) will always result in a context switching out of the running process. (a) Servicing an interrupt. (b) A blocking system call. (c) A non-blocking system call. (d) The system call exit, to terminate the current process.
kauray
asked
in
Operating System
May 8, 2017
by
kauray
4.6k
views
operating-system
context-switch
1
vote
1
answer
30
Doubt OS - Round Robin- Context Switch
How many time context switch in Round Robin? ( if only one process remain in ready queue at end of scheduling does that count every time, when time slice over or only one time?)
sanyam53
asked
in
Operating System
Jan 7, 2017
by
sanyam53
1.5k
views
context-switch
operating-system
process-scheduling
round-robin-scheduling
Page:
1
2
next »
Subscribe to GATE CSE 2024 Test Series
Subscribe to GO Classes for GATE CSE 2024
Quick search syntax
tags
tag:apple
author
user:martin
title
title:apple
content
content:apple
exclude
-tag:apple
force match
+apple
views
views:100
score
score:10
answers
answers:2
is accepted
isaccepted:true
is closed
isclosed:true
Recent Posts
DRDO Scientist -B
ISRO Scientist-B 2023
BARC RECRUITMENT 2023
COAP Responses | GATE CSE 2023
Interview Experience : M.Tech AI at IIT Jodhpur, Self Sponsored
Subjects
All categories
General Aptitude
(2.8k)
Engineering Mathematics
(9.7k)
Digital Logic
(3.4k)
Programming and DS
(5.9k)
Algorithms
(4.6k)
Theory of Computation
(6.7k)
Compiler Design
(2.3k)
Operating System
(5.0k)
Databases
(4.6k)
CO and Architecture
(3.8k)
Computer Networks
(4.7k)
Non GATE
(1.4k)
Others
(2.4k)
Admissions
(665)
Exam Queries
(1.0k)
Tier 1 Placement Questions
(17)
Job Queries
(77)
Projects
(9)
Unknown Category
(867)
Recent questions tagged context-switch
Recent Blog Comments
Indeed the reasons are valid, hope the positive...
@Shubham Sharma 2 Is it possible to get a...
are MSc.(CS) students eligible?
It is said that the gate score will have 80%...
Maybe we should raise our concern in Supreme...