What are shortterm mediumterm and longterm scheduling How ar
Solution
Long term scheduling;
Long term scheduling states that which programm should be load into memory for execution..
the programm is selected from the queue and and it is loading into memory for cpu execution..
this is starting phase ..selection of program is done in long term scheduling.
Medium Term Scheduling:
Medium Term Scheduling comes after long term sceduling here.running process is suspended and new new process is executed the.running proceess is taken from main memory and goes to secondry memory.
or else suppose if a runing process needds io operation then it swapped to secondary and next process uses cpu execution..
Short Term Sheduling:
Short Term Scheduling plays an important role in improving CPU performance..because it selects a process based on some scheduling algorithm and executes..
it changes form run to running state and etc
it is also called dispactcher
short term scheduling uses different algoriths like
round robin
firsct come first serve
shortest job first
all these can be with preemptive or without premptive
with premptive means swapping is done when runnig process goes to io execution..
withour premptive means even though the running process goes to io..the rest all processes shold wait till that runing process get back from io and executes cpu time
