answersLogoWhite

0

Operating systems may feature up to 3 distinct types of schedulers: a long-term scheduler (also known as an admission scheduler or high-level scheduler), a mid-term or medium-term scheduler and a short-term scheduler . The names suggest the relative frequency with which these functions are performed.

Long-term scheduler

The long-term, or admission, scheduler decides which jobs or processes are to be admitted to the ready queue; that is, when an attempt is made to execute a program, its admission to the set of currently executing processes is either authorized or delayed by the long-term scheduler. Thus, this scheduler dictates what processes are to run on a system, and the degree of concurrency to be supported at any one time - ie: whether a high or low amount of processes are to be executed concurrently, and how the split between IO intensive and CPU intensive processes is to be handled. In modern OS's, this is used to make sure that real time processes get enough CPU time to finish their tasks. Without proper real time scheduling, modern GUI interfaces would seem sluggish.

Long-term scheduling is also important in large-scale systems such as batch processing systems, computer clusters, supercomputers and render farms. In these cases, special purpose job scheduler software is typically used to assist these functions, in addition to any underlying admission scheduling support in the operating system.

Mid-term scheduler

The mid-term scheduler temporarily removes processes from main memory and places them on secondary memory (such as a disk drive) or vice versa. This is commonly referred to as "swapping out" or "swapping in" (also incorrectly as "paging out" or "paging in"). The mid-term scheduler may decide to swap out a process which has not been active for some time, or a process which has a low priority, or a process which is page faulting frequently, or a process which is taking up a large amount of memory in order to free up main memory for other processes, swapping the process back in later when more memory is available, or when the process has been unblocked and is no longer waiting for a resource.

In many systems today (those that support mapping virtual address space to secondary storage other than the swap file), the mid-term scheduler may actually perform the role of the long-term scheduler, by treating binaries as "swapped out processes" upon their execution. In this way, when a segment of the binary is required it can be swapped in on demand, or "lazy loaded".

Short-term scheduler

The short-term scheduler (also known as the CPU scheduler) decides which of the ready, in-memory processes are to be executed (allocated a CPU) next following a clock interrupt, an IO interrupt, an operating system call or another form of signal. Thus the short-term scheduler makes scheduling decisions much more frequently than the long-term or mid-term schedulers - a scheduling decision will at a minimum have to be made after every time slice, and these are very short.

This scheduler can be preemptive, implying that it is capable of forcibly removing processes from a CPU when it decides to allocate that CPU to another process, or non-preemptive (also known as "voluntary" or "co-operative"), in which case the scheduler is unable to "force" processes off the CPU.

User Avatar

Wiki User

12y ago

What else can I help you with?

Continue Learning about Natural Sciences

Which receptor Cells most directly enable us to distinguish different wavelengths of light?

Cones in the retina are the receptor cells that enable us to distinguish different wavelengths of light. There are three types of cones that are sensitive to different wavelengths, allowing us to perceive colors.


What are the three types of bursae?

The three types of bursae are subcutaneous bursae (located between the skin and underlying bone or muscle), submuscular bursae (situated between muscles and bone), and subtendinous bursae (found between tendons and bones).


Are sassafras leaves serrated?

Yes, sassafras leaves are typically serrated along the edges. They have a distinct mitten or three-lobed shape with serrated edges that distinguish them from other types of leaves.


Which receptor cells help distinguish different wavelengths of light?

Cones are the receptor cells in the retina that help distinguish different wavelengths of light. There are three types of cones that are sensitive to different wavelengths (red, green, and blue), allowing us to perceive a wide spectrum of colors.


Is it possible to distinguish between plants altered by classical genetics and those altered by modern techniques?

No, it is not possible to distinguish between plants altered by classical genetics and those altered by modern techniques based on physical characteristics alone. Both types can exhibit similar traits or attributes as a result of genetic modification. Additional testing or documentation would be needed to discern the specific alteration method.

Related Questions

Distinguish between an elixir and a tincture and give an example of each?

What two types of data can be collected? Describe eac.


Distinguish between plastic?

There are different types of plastics named polystone, resin, vinyl, PVC and ABS.


Why is important for the scheduler to distinguish IO and ndash bound programs from CPU and ndash bound programs?

It is important for the scheduler to distinguish between I/O-bound and CPU-bound programs because this differentiation allows for optimized resource allocation and improved overall system performance. I/O-bound programs spend more time waiting for input/output operations and can benefit from increased concurrency, while CPU-bound programs require more processing power. By prioritizing and scheduling these types of programs appropriately, the system can minimize idle time and enhance throughput, leading to a more efficient execution environment. This distinction ultimately helps in balancing the workload and maximizing resource utilization.


How many file types are avilable in C?

You can open any file with C, since it does not distinguish between file types. It's the way you read from the file.


What are the different types of cat faces and how can you distinguish between them?

There are three main types of cat faces: round, triangular, and square. Round faces have a circular shape with wide-set eyes and a short nose. Triangular faces have a pointed chin and wide-set eyes that form a triangle shape. Square faces have a strong jawline and a broad forehead. To distinguish between them, look at the shape of the face, the placement of the eyes, and the length of the nose.


What are the similarities between the three types of volcanoes?

Nothing


How do I distinguish between car subwoofers and home audio subwoofers?

Usually the brand and model number will give it away, or the types of audio hookups.


what are the three types of data sharing?

between functional units


Which receptor Cells most directly enable us to distinguish different wavelengths of light?

Cones in the retina are the receptor cells that enable us to distinguish different wavelengths of light. There are three types of cones that are sensitive to different wavelengths, allowing us to perceive colors.


What are the three types of bursae?

The three types of bursae are subcutaneous bursae (located between the skin and underlying bone or muscle), submuscular bursae (situated between muscles and bone), and subtendinous bursae (found between tendons and bones).


Is there a connection between the three types of industry and quality of life?

yes


What does 'properties' mean in science?

A property is what characteristics something has.