answersLogoWhite

0

What is CPU scheduling?

Updated: 12/23/2022
User Avatar

Wiki User

14y ago

Best Answer

The CPU scheduler is the part of the Operating System that determines when to allow each thread to execute. Usually this is done by seeing if all the wait conditions, such as IO wait, timer wait, semaphore wait, etc. have been cleared, and if the thread priority or round-robin turn criteria have been met.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

9y ago

A CPU scheduler maximizes CPU utilization. It can do the scheduling based on two types, which is either a preemptive or a non-preemptive scheduling.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is CPU scheduling?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is priority scheduling algorithm?

The priority scheduling algorithm is a kind of CPU scheduling algorithm where the processes that wait for the CPU are scheduled according to their priority..


Why CPU scheduling is require?

So that CPU utilise all the resources of OS


What is the difference between preemptive and non preemptive scheduling?

1.) in preemptive scheduling we prempt the currently executing process, in non preemptive scheduling we allow the current process to finish its CPU burst time... 2.) in preemptive scheduling the process is forcibly sent to waiting state when a process with higher priority comes to CPU, in non preeemptive scheduling the process at running state can not be forced to leave the CPU until it completes........


What CPU scheduling algorithm is used by?

same as linux use.


Difference between preemptive and non preemptive system.with example?

Preemptive scheduling allows a process to be interrupted in the midst of its execution, taking the CPU away and allocating it to another process.Non-preemptive scheduling ensures that a process relinquishes control of the CPU only when it finishes with its current CPU burst.


What is the difference between primitive and non primitive CPU scheduling algorithm?

In Non-Primitive CPU Algo. once a process is given to the CPU it cannot be preempt,but in primitive Algo. it can be.


Definition of scheduling in operating system?

the objective of multiprograming is to have some processs running at aal time,so as to maximizing cpu utillization .this process is called scheduling.


Is the round robin CPU scheduling algorithm suitable for time sharing OS?

Yes, it is one of many scheduling algorithms suitable for time sharing.However it is not suitable for scheduling in a hard realtime OS that must consistently meet deadlines.


What is the difference between process scheduling and CPU scheduling?

1. Job scheduler is also called long term scheduler and CPU scheduler is called short term scheduler.2. Job scheduler selects the processes from the job pool and load them in to the memory for execution. in other hand CPU scheduler selects among the processes that are in ready to execute and allocate the CPU to one of them.3. CPU scheduler is faster than the process scheduler.Read more: What_is_the_difference_between_the_job_scheduler_the_CPU_scheduler


What are different types of CPU scheduling algorithms?

Round robin schedulingPriority schedulingShortest job firstBy Tirok


Explain with an example first come first serve scheduling algorithm?

By far the simplest CPU-scheduling algorithm is the first-come, first-served (FCFS) scheduling algorithm. With this scheme, the process that requests the CPU first is allocated the CPU first. The implementation of the FCFS policy is easily managed with a FIFO queue. When a process enters the ready queue, its PCB is linked onto the tail of the queue. When the CPU is free, it is allocated to the process at the head of the queue. The running process is then removed from the queue. The code for FCFS scheduling is simple to write and understand. The average waiting time under the FCFS policy, however, is often quite long. Consider the following set of processes that arrive at time 0, with the length of the CPU-burst time given in milliseconds:


What are the scheduling criteria for CPU scheduling?

CPU Scheduling Criteria: There are many scheduling algorithms and various criteria to judge their performance. Different algorithms may favor different types of processes. Some criteria are. as follows: • CPU utilization: CPU must be as busy as possible in performing different tasks. CPU utilization is more important in real-time system and multi-programmed systems. • Throughput: The number of processes executed in a specified time period is called throughput. The throughput increases .for short processes. It decreases if the size of processes is huge. • Turnaround Time: The amount of time that is needed to execute a process is called turnaround time. It is the actual job time plus the waiting time. • Waiting Time: The amount of time the process has waited is called waiting time. It is the turnaround time minus actual job time. • Response Time: The amount of time between a request is Submitted and the first response is produced is called response time. A CPU scheduling algorithm should try to maximize the following: • CPU utilization • Throughput A CPU scheduling algorithm should try to minimize the following: • Turnaround time • Waiting time • Response time by manish kumar gnit g.noida