Question

Part I: Theory In this part you need to discuss different process scheduling algorithm. The main points to include in your pr
0 0
Add a comment Improve this question Transcribed image text
Answer #1

PROCESSOR SCHEDULING:-

WHEN?

1. WHEN PROCESS IS GOING FROM RUNNING STATE TO TERMINATION STATE

2. When the process is going from Running state to Wait/block/IO state

3. When the process is going from Running state to Ready State due to pre-emption

4. When the process is going from Wait state to ready state due to high priority

Functionality:-

To allocate the CPU for  the process execution

GOAL:-

i) Increase the Cpu utilization and throughput of the system

ii) Minimize the average Waiting time, Average turn around time of the processes.

In preemptive scheduling, A process in running state can be fetched out called as context switching in ready state and another process from the ready state gets chance in running state at any time either the process in running state is completed its execution or not.pre-emption of the process can be done at any time. usually, pre-emption happens when high priorities process arrives in the ready state.

Whereas in Case of Nonpreemptive scheduling once a process gets inside the running state it will not leave the running state until its complete its execution no matter either high priority process arrives in a ready state or not.

Priorities in scheduling are set just for giving a process more important than other processes and if a process has higher priority then it gets chance to be in running state for execution as compared to processes with low priority.

1. First in first out(FIFO):-

This scheduling algorithm is based on the criteria of ARRIVAL TIME i.e Process with low arrival time will be executed first in Running state. And it also uses the Non-preemptive mode of scheduling.

If the arrival time of the processes is the same then schedule the process which has the lowest processId.

In FIFO, If the process is having large Burst time then it will have a drastic effect on the average waiting time of all the processes. This effect is called Convoy effect.

2. Round Robin(RR):-

In Round Robin, there is a term used QUANTUM or TIME SLICE i.e a time slice or quantum time is set and Every process will be executed till that time slice one by one. (for example, if there are two processes and quantum time is 1 sec then the first process will execute for 1 sec and then the second process will execute for 1 sec and again the first process will execute for 1 sec and so on till all processes complete its execution).

It uses the preemptive mode of scheduling

If the time quantum is very very large then RR degenerates to FIFO algorithm

RR is used to decrease the Response time.

3. Shortest process First(SPF):-

This scheduling algorithm is based on the criteria of Burst TIME i.e Process with low Burst time will be executed first in Running state. And it also uses the Non-preemptive mode of scheduling.

If the Burst time of the processes is the same then schedule the process which has the lowest arrival time.

If the arrival time of the processes is the same then schedule the process which has the lowest processId.

Add a comment
Know the answer?
Add Answer to:
Part I: Theory In this part you need to discuss different process scheduling algorithm. The main...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • implement a program, which allow you to evaluate and compare different scheduling algorithms. List of implemented...

    implement a program, which allow you to evaluate and compare different scheduling algorithms. List of implemented algorithms for evaluation should include FCFS algorithm and at least one from the following: -SJF – preemptive and non-preemptive -Priority scheduling – preemptive and non-preemptive -RR -Multilevel feedback queue Your program should be able to work in two different modes: “Single algorithm performance evaluation” and “Algorithm comparing”

  • Assume a dynamic queue which is serviced by a Priority Based Round Robin algorithm such that ther...

    Assume a dynamic queue which is serviced by a Priority Based Round Robin algorithm such that there exists three priorities (1,2,3) which are used as multipliers of the basic time quantum value with the resulting number being the maximum service time the corresponding job will receive each time it gets the CPU. For a maximum amount of time equal to 1 basic time quantum , a priority 2 job gets the CPU for the maximum amount of time equal to...

  • This assignment requires you to create simulations for different scheduling algorithms commonly employed by operating systems...

    This assignment requires you to create simulations for different scheduling algorithms commonly employed by operating systems to achieve multiprogramming. All problems in this assignment assume the following: The simulations you will be creating are for a uniprocessor system (single CPU). Processes in these simulations will require CPU bursts of one or more time units followed by I/O bursts of one or more time units. For simplicity’s sake, when more than one process is executing its I/O burst at the same...

  • Assume that you have four different processes with the following attributes: Process   Arrival time.   CPU Burst....

    Assume that you have four different processes with the following attributes: Process   Arrival time.   CPU Burst.   I/O Burst Total CPU time A. 0 4 4 9 B 3 2 3 7 C 6 5 1 11 D 12 1 1 5 As we did in class, perform a scheduling simulation using these four processes according to the following algorithms: 1) First Come First Serve 2) Round Robin with time slice = 1 3) Round Robin with time slice = 3...

  • Breadth First Search algorithm, process scheduling, graph theory, and congestion handling in networks are some applications...

    Breadth First Search algorithm, process scheduling, graph theory, and congestion handling in networks are some applications of queues. The two core operations in queues include enqueue () for insertions on one end, and dequeue () for deletions from the other end, size() returns the size of the queue, front() returns the first element in the queue, empty() determines if the queue is empty. Considering the lines give below, write a c program that implements enqueue and dequeue operations and print...

  • Description In this homework, you are asked to implement a multithreaded program that will allow ...

    Description In this homework, you are asked to implement a multithreaded program that will allow us to measure the performance (i.e, CPU utilization, Throughput, Turnaround time, and Waiting time in Ready Queue) of the four basic CPU scheduling algorithms (namely, FIFO, SJE PR, and RR). Your program will be emulating/simulating the processes whose priority, sequence of CPU burst time(ms) and I'O burst time(ms) will be given in an input file. Assume that all scheduling algorithms except RR will be non-preemptive,...

  • scheduling program in C, please help 1 Objectives This programming project is to simulate a few...

    scheduling program in C, please help 1 Objectives This programming project is to simulate a few CPU scheduling policies discussed in the class. You will write a C program to implement a simulator with different scheduling algorithms. The simulator selects a task to run from ready queue based on the scheduling algorithm. Since the project intends to simulate a CPU scheduler, so it does not require any actual process creation or execution. When a task is scheduled, the simulator will...

  • I just need an algorithm for this please! I have C++ code for it but I dont know how to creat an ...

    I just need an algorithm for this please! I have C++ code for it but I dont know how to creat an algorithm .. CSE 1311-Project 4 Part I: Create and print out the two arrays: (Be sure to do this first) You are allowed to hard code these arrays into your program. You can also put the data into a file and read the information into the program. The data is as follows: 150 250 Anne Bob Ralph 305...

  • Question I This question carries 20% of the marks for this assignment. You are asked to...

    Question I This question carries 20% of the marks for this assignment. You are asked to develop a set of bash shell script: Write a script that asks for the user's salary per month. If it is less or equals to 800, print a message saying that you need to get another job to increase your income, what you earn is the Minim living cost. If the user's salary is higher than 800 and below 2000, print a message telling...

  • I have homework i was answered it .. but i need you to complete my answer...

    I have homework i was answered it .. but i need you to complete my answer to become 1000 words // i need 1000 words please use your own words, don't copy and paste, don't use handwriting, please. i need your references URL Link please** Book: Marketing Management ________________ Q: DEVELOP A CREATIVE BRIEF A creative brief is a structured document whose purpose is to communicate quickly and concisely to anyone who might be involved in the creation of promotional...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT