438 views
1 votes
1 votes
which one is correst #round robin scheduling is essentially the preemptive version of 1) FIFO 2) shortest job first 3) shortest remaining time first 4) longest time first

1 Answer

1 votes
1 votes

Answer 1 ) FIFO

Round robin and FIFO are related like this

FIFO: First task in, First task out...

Means that as you insert task to the queue, they are in the order processed (the time a task will run is INFINITE, or the task itself can give up CPU time).

Every task is defaultly inserted in FIFO queue.

+ Order of completion is preserved

-  long running processes can stall the system.

- less context switch overhead.

Round-Robin:

The same as FIFO, but the time is NOT INFINITE:

time slices are assigned to each process in equal portions and in circular order.

+ Use round robin if it is desirable to allow long running processes to execute while not interfering with shorter ones

+ starvation free

- Order of completion is not guaranteed.

- Round Robin can suffer if there are many processes in the system, since it will take longer for each process to complete since the round trip is longer.

- No prioritization occurs, and waiting time is high. So deadlines are rarely met in a pure Round Robin system.

This link is kinda helpful https://en.wikipedia.org/wiki/Scheduling_%28computing%29#First_in.2C_first_out

edited by

Related questions

0 votes
0 votes
2 answers
2
arkaprava_gupta asked Dec 23, 2022
1,483 views
If a processor has 32-bit virtual address, 28-bit physical address, 2 kb pages. How many bits are required for the virtual, physical page number?17, 2121, 176, 10NoneThe ...
0 votes
0 votes
1 answer
3
arkaprava_gupta asked Dec 23, 2022
327 views
Which of the following processor registers are used for fetch and execute operations ?Program CounterInstruction RegisterAddress RegisterOptions :a and bb and ca and cNon...
0 votes
0 votes
3 answers
4
arkaprava_gupta asked Dec 23, 2022
515 views
Memory mapping table is used to(a) Translate virtual address to physical address(b) Translate physical address to virtual address(c) Both(d) None