answersLogoWhite

0


Best Answer

The scheduler's job is deciding when each process gets a shot at CPU time and for how long. While their approaches are different, they all follow roughly the same strategy:

First, assume that the CPU can run only one process at a time. CPUs with multiple cores are treated as multiple CPUs that can only run a single process or thread. Therefore the scheduler will determine that X amount of processes can be in a "running" state, where X is the number of cores or CPUs.

Second, assume that any process waiting for I/O is not going to accomplish anything while on the CPU, so do not schedule the process until its associated I/O operation has been COMPLETED by the hardware in question.

Third, assume that not all processes are equal in importance. Some processes really do not need much CPU time, so do they really need to preempt a process that does need plenty of CPU?

Fourth (In preemptive scheduling.), the kernel and not the processes, have full control over when context switching occurs, including when a process's time slice expires. Further, a process can and should be able to preempt itself when asking for I/O so that the kernel can arrange the operation with the drivers.

Finally, assume that all processes are flawed and just waiting to try and take each other's stuff. The scheduler itself will not implement memory protection, but it does need to know how to interpret whatever memory management is in place for context switching purposes.

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the function of the OS scheduler?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Which is not a function of the OS?

All are functions of the OS.


Is the Process Scheduler is also called the high-level scheduler?

No. The Job Scheduler is the high-level scheduler.


What is job scheduler and dispatcher?

What is job scheduler and dispatcher?


What is the difference between the job scheduler the CPU scheduler?

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.


Which scheduler controls the degree of multiprogramming?

Long Term Scheduler


3Explain the function of OS in memory management?

function of memory management


What os is better for a cell and why?

I don't think cells need an OS to function properly


What is the other name for job scheduler in operating systems?

long-term scheduler...


When was ULE scheduler created?

ULE scheduler was created on 2003-01-26.


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 is the function os the nucleolus?

It's the brain of the cell


What is symbian function mobile?

ฟังก์ชันล่าสุดSymbian OS