- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Short-term vs medium-term vs long-term scheduling
Process Scheduling handles the selection of a process for the processor on the basis of a scheduling algorithm and also the removal of a process from the processor. It is an important part of multiprogramming in operating system.
Process scheduling involves short-term scheduling, medium-term scheduling and long-term scheduling. Details about these are given as follows −
- Long-Term Scheduling
Long-term scheduling involves selecting the processes from the storage pool in the secondary memory and loading them into the ready queue in the main memory for execution. This is handled by the long-term scheduler or job scheduler.
The long-term scheduler controls the degree of multiprogramming. It must select a careful mixture of I/O bound and CPU bound processes to yield optimum system throughput. If it selects too many CPU bound processes then the I/O devices are idle and if it selects too many I/O bound processes then the processor has nothing to do.
- Short-Term Scheduling
Short-term scheduling involves selecting one of the processes from the ready queue and scheduling them for execution. This is done by the short-term scheduler. A scheduling algorithm is used to decide which process will be scheduled for execution next by the short-term scheduler.
The short-term scheduler executes much more frequently than the long-term scheduler as a process may execute only for a few milliseconds.
The choices of the short term scheduler are very important. If it selects a process with a long burst time, then all the processes after that will have to wait for a long time in the ready queue. This is known as starvation and it may happen if a wrong decision is made by the short-term scheduler.
A diagram that demonstrates scheduling using long-term and short-term schedulers is given as follows −
- Medium-Term Scheduling
Medium-term scheduling involves swapping out a process from main memory. The process can be swapped in later from the point it stopped executing. This can also be called as suspending and resuming the process and is done by the medium-term scheduler.
This is helpful in reducing the degree of multiprogramming. Swapping is also useful to improve the mix of I/O bound and CPU bound processes in the memory.
A diagram that demonstrates medium-term scheduling is given as follows −
- Related Articles
- Long-Term Financial Plan vs. Short-Term Financial Plan
- Differentiate between the long-term, short-term, and medium-term schedulers.
- Difference between Long-Term and Short-Term Scheduler.
- Trade-off between Long-term and Short-term Financing
- Difference Between Long-Term and Short-Term Scheduler in OS
- Write the difference between short term capital gain and long term capital gain.
- What are the differences between short-term and long-term finance functions or decisions?
- Long Term Memory
- Long-term Evolution (LTE)
- How to Create a Long-Term Financial Plan?
- Find the second term and nth term of an A.P. whose 6th term is 12 and the 8th term is 22.
- In a certain A.P. the 24th term is twice the 10th term. Prove that the 72nd term is twice the 34th term.
- The 24th term of an A.P. is twice its 10th term. Show that its 72nd term is 4 times its 15th term.
- The eighth term of an A.P. is half of its second term and the eleventh term exceeds one third of its fourth term by 1. Find the 15th term.
- The eighth term of an AP is half its second term and the eleventh term exceeds one third of its fourth term by 1 . Find the ( 15^{text {th }} ) term.
