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
#OS Cpu scheduling doubt about SRTF turning into FCFS.
iarnav
asked
in
Operating System
Jul 17, 2018
826
views
0
votes
0
votes
Let's say we have four processes as (P1, P2, P3, P4) and have Arrival time as (0,1,2,3) respectively, but all of them has same CPU Burst time as (10ms) then does SRTF will simply be behaving like FCFS?
process-scheduling
operating-system
sjf
iarnav
asked
in
Operating System
Jul 17, 2018
by
iarnav
826
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
2
votes
2
votes
Best answer
Yes in such cases the SRTF will work as FCFS:
the main reason is ...SRTF will look out for the burst time which is small at every instance of PROCESS ARRIVAL ...but as per question the burst time for all is same so ..only one that will create difference is Arrival time ..
hence upto 2nd process will come the 1st process has already executed for 1 unit of time and will have less burst time than 2nd as well as any upcoming process ..hence "ITS TRUE"..
SHUBHAM SHASTRI
answered
Jul 17, 2018
selected
Jul 17, 2018
by
iarnav
by
SHUBHAM SHASTRI
comment
Follow
share this
4 Comments
by
iarnav
commented
Jul 17, 2018
reply
Follow
share this
Thanks, bhai!
Also, what it, AT is also same and BT is also same, then how SRTF will behave?
0
0
by
Shubham Shukla 6
commented
Jul 17, 2018
reply
Follow
share this
@ iarnav than process will be executed according to their prcoess id...process with lower process id will be executed first if u have same burst and same arrival time.!
1
1
by
SHUBHAM SHASTRI
commented
Jul 17, 2018
reply
Follow
share this
yes .. it will be mentioned in the question .. but most of times its as per id
1
1
by
iarnav
commented
Jul 17, 2018
reply
Follow
share this
Alright, thank you both of you! :)
0
0
Please
log in
or
register
to add a comment.
← Previous
Next →
← Previous in category
Next in category →
Related questions
1
vote
1
vote
0
answers
1
iarnav
asked
in
Operating System
Jul 11, 2018
3,414
views
#Galvin #CpuScheduling SJF VS SRTF Average waiting time doubt.
Let's say we have two CPU scheduling algorithm as SJF and SRTF and we have a arbitrary pool/set of processes with different ARRIVAL TIME and CPU BURST, then what CPU scheduling algorithm will result in minimum average ... values or when arrival times are different than SRTF will ALWAYS have the less average waiting time over SJF?
iarnav
asked
in
Operating System
Jul 11, 2018
by
iarnav
3.4k
views
operating-system
process-scheduling
sjf
0
votes
0
votes
1
answer
2
Na462
asked
in
Operating System
Jul 12, 2018
1,178
views
Scheduling SJF
Na462
asked
in
Operating System
Jul 12, 2018
by
Na462
1.2k
views
process-scheduling
operating-system
sjf
1
vote
1
vote
1
answer
3
Nandkishor3939
asked
in
Operating System
Jan 17, 2019
2,810
views
CPU Scheduling (SRTF)
I have solved this but not getting the answer…. will any one verify its correctness plz Thank you:)
Nandkishor3939
asked
in
Operating System
Jan 17, 2019
by
Nandkishor3939
2.8k
views
process-scheduling
operating-system
0
votes
0
votes
0
answers
4
sripo
asked
in
Operating System
Jan 1, 2019
895
views
Madeeasy Test Series: Operating System - Process Schedule
For the given question instead of the given order if we take one unit of P2 as its arrival time is 1 and then schedule P1 next we get the same answer,even in the hint they have given as the process which comes first ... and the solution given ends up giving the same answer,does this happen for all cases or just happening for this question?
sripo
asked
in
Operating System
Jan 1, 2019
by
sripo
895
views
process-scheduling
operating-system
sjf
made-easy-test-series
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