Preview

Scheduling in different Operating Systems

Good Essays
Open Document
Open Document
487 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Scheduling in different Operating Systems
Introduction

With CPU’s become faster and more capable of handling many programs/processes at any single time, a program is essential where the different processes of programs are manages and all given time to be processed by the CPU. The CPU has its limitations and cannot process anything at once. Enter the process Scheduler. The Scheduler helps the CPU by assigning the next process to be processed by the CPU Body

In all the operating systems, schedulers are a critical component of the CPU to getting processes done. Allowing fairness between processes that need to be completed and give over all optimal efficiency to the end user. User perceived performance is a critical part of the scheduler, this how efficient the systems seems to the human user. All processes deserve fairness in which they receive access to systems resources. This is exemplified by the round robin scheduling algorithm.

Figure 1: Simple diagram of scheduling a process

Round Robin is used to switch between real time processes. Round Robin is also used for time-share, meaning that each process is given an equal “time Slice” to be processed by the CPU. Real Time processes have the highest priority and usually over rule any other process at the time.

In Linux, the two processing scheduling algorithms used for real time processes is Round Robin and First-in-First-out (FIFO). These two scheduling algorithms allow real-time processes to be executed in a timely fashion, and a time-sharing algorithm is used for all other processes. The time-sharing algorithms are prioritized and “credit-based”. The process with the most credits is selected, and while a process is running, it loses credits every time the timer interrupts occur. A process may no longer run if it has no more credits remaining. If the process that uses the time-sharing algorithm has no credits remaining, the system assigns credits. Also meaning the higher priority processes will then receive more credits.

An

You May Also Find These Documents Helpful

  • Good Essays

    Some OS routines directly support application programs as they run and thus must be resident. Other transient routines are stored on disk and read into memory only when needed. Fixed-length partitions can also be used to allocate the set amount of memory that a particular program needs to run. Under dynamic memory management, the transient area is treated as a pool of unstructured free space. When the system decides to load a particular program, a region of memory just sufficient to hold the program is allocated from the pool. Using segmentation, programs are divided into independently addressed segments and stored in noncontiguous memory. Paging breaks a program into fixed-length pages.…

    • 7085 Words
    • 29 Pages
    Good Essays
  • Satisfactory Essays

    Nt1310 Unit 1 Study Guide

    • 378 Words
    • 2 Pages

    Multiple threads can interfere with each other when sharing hardware resources such as caches or translation lookaside buffers (TLBs). As a result, execution times of a single thread are not improved but can be degraded, even when only one thread is executing, due to lower frequencies or additional pipeline stages that are necessary to accommodate thread-switching hardware.…

    • 378 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Nt1330 Unit 1 Study Guide

    • 2629 Words
    • 11 Pages

    CPU scheduler is to selects from among the processes in memory ready to execute and allocates the CPU to one of them. CPU scheduling decisions may take place when a process:…

    • 2629 Words
    • 11 Pages
    Powerful Essays
  • Good Essays

    Nt1310 Unit 3 Os

    • 1341 Words
    • 6 Pages

    +• Scheduling: Any processor may perform scheduling, which complicates the task of enforcing a scheduling policy and assuring that corruption of the scheduler data structures is avoided. If kernel-level multithreading is used, then the opportunity exists to schedule multiple threads from the same process simultaneously on multiple processors.…

    • 1341 Words
    • 6 Pages
    Good Essays
  • Good Essays

    Memory management is an important characteristic of an operating system. Main memory is divided into two parts one for resident programs, and the other for the program currently in use. The user part must be subdivided to accommodate multiple processes (Stallings, 2012). When a few processes are in the memory then much of the time all of the processes will have to wait for input /output and the processor will be idle. According to Stallings (2012),. The requirements that memory management is supposed to satisfy are Relocation, Protection, Sharing, Logical organization, and Physical…

    • 573 Words
    • 3 Pages
    Good Essays
  • Good Essays

    One of the key functions of an operating system is the process management. Linux OS system is very dynamic with constantly changing computing needs. These needs tend to be centered on the process. Processes can be either long or short lived, so managing these processes is very important. Linux incorporates a very flexible design which contains a separate unit to take on the process management task. In a Linux operating system processes are created and represented by an allocated task_struct.…

    • 749 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Exercise 8 Study Guide

    • 398 Words
    • 2 Pages

    1. Under the above policy, 2 processes can be run simultaneously or active at once.…

    • 398 Words
    • 2 Pages
    Satisfactory Essays
  • Better Essays

    IT 600 Module One Lecture

    • 1256 Words
    • 5 Pages

    Since a CPU can run only one process at a time, process management must handle the…

    • 1256 Words
    • 5 Pages
    Better Essays
  • Satisfactory Essays

    Who Is Amir Truly Happy

    • 151 Words
    • 1 Page

    Moreover, as he rescued Sohrab, one may clearly point out the instant change in his personality. Before Amir can take Sohrab, Assef said that he would have to battle him in a fight. During the fight, Amir began to laugh, because he was waiting for this day to come. Then eating that Amir took, freed his guilt and he was finally able to breathe easily (metaphorically speaking). In the text Amir describes “I don't know at what point I started laughing, but I did——I hadn't been happy and I hadn't felt better now, not at all. But I did now. My body was broken--just how badly I wouldn't find out until later--but I felt healed” (Hosseini, 289). It was noticeable that Amir was genuinely happy, because Sohrab reminded him of Hassan. Hosseini illustrates…

    • 151 Words
    • 1 Page
    Satisfactory Essays
  • Powerful Essays

    Bca Cs-63

    • 1608 Words
    • 7 Pages

    Consider the following set of processes that arrive in the ready queue at the same time:…

    • 1608 Words
    • 7 Pages
    Powerful Essays
  • Powerful Essays

    QNX is a microkernel real-time operating system, from now on referred to as an RTOS. A microkernel RTOS is special in the way that the OS is built up with a number of small services which each handle a specific task, this is basically a set of system calls which is available to the developer. These services only implement low-level communication over network and between processes, process scheduling and interrupt handling. Other OS functions as file-system and device drivers are deployed as user processes outside the kernel. In contrast most other OS use a monolithic kernel. In that case all kernel functions reside in…

    • 3500 Words
    • 14 Pages
    Powerful Essays
  • Good Essays

    During this period we experience a desire to copy the adults around us and take initiative in creating play situations. We make up stories with Barbie’s and Ken’s, toy phones and miniature cars, as well as playing out roles in a trial universe.…

    • 794 Words
    • 3 Pages
    Good Essays
  • Good Essays

    In the preemptive method, the OS maintains total control over prioritizing system processes. The OS maintains a static priority list of currently running programs and processes; adding programs to the list as they are loaded into resident memory, removing them as they complete or are closed, and modifying the pre-assigned priority level of any program already on the list. In this way, programs are essentially "unaware" of one another, never having to pause for the current process to "check in" with the operating system. This speeds up overall processing time in itself. Additionally, the…

    • 363 Words
    • 1 Page
    Good Essays
  • Satisfactory Essays

    disk scheduling

    • 266 Words
    • 2 Pages

    Disk scheduling is one of the main responsibilities of Operating System. OS manages hard disk to provide best access time. All major Disk scheduling algorithms incorporate seek time as the only factor for disk scheduling. The second factor rotational delay is ignored by the existing algorithms. This research paper considers both factors, Seek Time and Rotational Delay to schedule the disk. Files are the most obvious objects in the operating systems manipulate. Everything is typically stored in files: programs, data, output, and so on. One problem in the file management is how to allocate space for file so that disk space is utilized effectively and files can be accessed quickly. Three major methods of allocating disk space are contiguous, linked and indexed. Each method has its advantages and disadvantages.…

    • 266 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Scheduling

    • 1111 Words
    • 5 Pages

    • Deadlock can occur if two or more processes are competing for two or more common resources • Deadlock causes all processes involved in the deadlock to become permanently blocked…

    • 1111 Words
    • 5 Pages
    Satisfactory Essays