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
#Self Doubt OS CPU scheduling?
iarnav
asked
in
Operating System
Jan 12, 2022
390
views
1
vote
1
vote
Does non preemptive CPU scheduling needs hardware support.
kindly explain.
process-scheduling
operating-system
context-switch
iarnav
asked
in
Operating System
Jan 12, 2022
by
iarnav
390
views
answer
comment
Follow
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
0
votes
0
votes
At this point let me point out that with several different users sharing the same resources, the operating system needs to act a bit like a police officer and keep the order…
It would be an interesting world if students could read my gradebook on the andrew system and see each others grades -- or if faculty and staff could see each other's salaries, &c...
But the OS is a piece of software, like any other, so how can it do this?
The answer, as was the case for preemptive scheduling, is that the OS needs some level of support from the hardware…
Hardware can enforce limits on what memory addresses a particular program can access, &c….
The OS can change these values by using privleged instructions. These instructions may be incorporated into ISRs, or they may be invoked via special instructions called traps....
In either case, the hardware verifies that the user is in fact the OS (or other privleged process) before allowing the instruction... If this isn't the case, an exception occurs. Exceptions are often handled in a way similar to interrupts, via a service routine....
1.
https://gateoverflow.in/357526/Gate-cse-2021-set-2-question-14
2.
https://stackoverflow.com/questions/41404689/to-implement-os-for-preemptive-tasks-what-hardware-feature-should-cpu-support
aaa 1
answered
Jan 12, 2022
by
aaa 1
comment
Follow
share this
0 Comments
Please
log in
or
register
to add a comment.
← Previous
Next →
← Previous in category
Next in category →
Related questions
1
vote
1
vote
1
answer
1
jayadev
asked
in
Operating System
Oct 10, 2021
1,104
views
#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
1.1k
views
operating-system
process-scheduling
round-robin-scheduling
context-switch
0
votes
0
votes
1
answer
2
delxbydelt
asked
in
Operating System
Mar 15
193
views
OS, Process Scheduling
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 requires kx seconds to complete and the context switch takes 0 seconds. At what time the first process will complete the execution? (assume all the variables as integers). A) nkx B) k(nx-1) C) k(nk+n) D) x(nk-n+1)
delxbydelt
asked
in
Operating System
Mar 15
by
delxbydelt
193
views
process-scheduling
operating-system
round-robin-scheduling
context-switch
process-synchronization
8
votes
8
votes
6
answers
3
rahul sharma 5
asked
in
Operating System
Aug 26, 2017
4,497
views
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
4.5k
views
operating-system
round-robin-scheduling
context-switch
process-scheduling
6
votes
6
votes
1
answer
4
sunil sarode
asked
in
Operating System
Nov 15, 2017
11,282
views
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
11.3k
views
round-robin-scheduling
operating-system
context-switch
process-scheduling
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
Post GATE 2024 Guidance [Counseling tips and resources]
GATE CSE 2024 Result Responses
[Project Contest] Pytorch backend support for MLCommons Cpp Inference implementation
Participating in MLCommons Inference v4.0 submission (deadline is February 23 12pm IST)
IIITH PGEE 2024 Test Series by GO Classes
Subjects
All categories
General Aptitude
(3.5k)
Engineering Mathematics
(10.4k)
Digital Logic
(3.6k)
Programming and DS
(6.2k)
Algorithms
(4.8k)
Theory of Computation
(6.9k)
Compiler Design
(2.5k)
Operating System
(5.2k)
Databases
(4.8k)
CO and Architecture
(4.0k)
Computer Networks
(4.9k)
Artificial Intelligence
(79)
Machine Learning
(48)
Data Mining and Warehousing
(25)
Non GATE
(1.4k)
Others
(2.7k)
Admissions
(684)
Exam Queries
(1.6k)
Tier 1 Placement Questions
(17)
Job Queries
(80)
Projects
(11)
Unknown Category
(870)
64.3k
questions
77.9k
answers
244k
comments
80.0k
users
Recent Blog Comments
category ?
Hi @Arjun sir, I have obtained a score of 591 in ...
download here
Can you please tell about IIT-H mtech CSE self...
Please add your admission queries here:...
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy