Preview

Round Robin

Powerful Essays
Open Document
Open Document
2242 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Round Robin
INTRODUCTION
CPU Scheduling is the process by which an Operating System decides which programs get to use the CPU. The major current O/S all work pretty much alike, although there are many possible ways to decide this issue. First, one must understand that, although every computer task takes CPU time, some take lots and some take just a bit, and then use I/O devices, or wait for user input. When that happens, processes running on the computer usually release the CPU, and let other processes use it.

In most systems, each process has a priority number, although numbers mean different things in different systems. In Unix, for example, priority 0 is the highest, and the bigger the priority number, the lower the priority. When a process is started, it is given a number, and then waits until all higher priority processes are not using the CPU before it gets a shot. Usually, the CPU is given to a process, and then, after a "time slice" has gone by, the scheduler re-evaluates the processes to see which one "deserves" the CPU next. Sometimes, the priority of a process is lowered when it uses CPU, so that a "greedy" process won 't make the system too slow for other processes. It 's all a balancing act, and the better it is done, the faster the computer appears to be to the user or users.

INTRODUCTION OF ROUND ROBIN
It is one of the oldest, simplest, fairest and most widely used scheduling algorithms, designed especially for time-sharing systems. A small unit of time, called time slice or quantum, is defined. All runnable processes are kept in a circular queue. The CPU scheduler goes around this queue, allocating the CPU to each process for a time interval of one quantum. New processes are added to the tail of the queue.
The CPU scheduler picks the first process from the queue, sets a timer to interrupt after one quantum, and dispatches the process.
If the process is still running at the end of the quantum, the CPU is preempted and the process is added to the tail



References: 1. Advantages and disadvantages of round robin scheduling http://wiki.answers.com/Q/Advantages_and_disadvantages_of_round_robin_scheduling_if_the_time_slice_is_too_large 2. Example of round robin scheduling http://wiki.answers.com/Q/Example_of_round_robin_scheduling 3. Operating system http://operatingsystem-hw1.googlecode.com/svn-history/r8/OS/csc501-lab0/otherCodes/Lab1Answers.txt 4. Round robin scheduling http://en.wikipedia.org/wiki/Round-robin_scheduling http://www.scribd.com/doc/10063347/What-is-Round-Robin-Scheduling

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Nt1310 Unit 1 Study Guide

    • 378 Words
    • 2 Pages

    The simplest type of multithreading occurs when one thread runs until it is blocked by an event that normally would create a ___________…

    • 378 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Unit 59 Assignment 3

    • 645 Words
    • 3 Pages

    The process of how the subroutine works within an operating environment is as follows. While the main part of the program is running, there will be a call command sent to the CPU to tell it to stop wherever the program is at, store the W, Z and status along with where in the main program the CPU is at in the stack. Then the main program is cleared from memory and the subroutine is loaded for the CPU to start processing the code. Once the subroutine has finished, the subroutine code is deleted from memory and the CPU will load up the main program back on and will retrieve from stack the stored information (W, Z and status) which will allow the CPU know exactly where it needs to start from.…

    • 645 Words
    • 3 Pages
    Good 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
  • Satisfactory Essays

    call to suspend the execution of the thread for a given amount of time, say in µsecs.…

    • 299 Words
    • 2 Pages
    Satisfactory 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
  • Satisfactory Essays

    Biology Exam Paper

    • 2143 Words
    • 9 Pages

    Using a technology called ____, a processor can begin executing an instruction before it completes the previous instruction.…

    • 2143 Words
    • 9 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Round Robin

    • 279 Words
    • 2 Pages

    The specific requirements for case presentations will be discussed during the first class. Students who either miss this class or are not clear on the case presentation requirements must contact the instructor.…

    • 279 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Southwest Airlines

    • 775 Words
    • 4 Pages

    Chapter 13 is titled “Scheduling Operations” and it is mainly about scheduling decisions for batch operations and how they deal with the allocation of scarce resources to jobs, activities, tasks, or customers. “Scheduling results in a time-phased plan, or schedule, of activities. The schedule indicates what is to be done, when, by whom, and with what equipment. Scheduling should be clearly differentiated from aggregate planning” (Schroeder, pg. 293).…

    • 775 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Eco/539 Week 4

    • 764 Words
    • 4 Pages

    - Longest processing time (LOT): Jobs are sequenced in order of the processing time required at the work stations with the job requiring the longest processing time at the work station scheduled first.…

    • 764 Words
    • 4 Pages
    Good Essays
  • Good Essays

    possible the system clock could easily lose the correct time. The system clock is also used for scheduling purposes. For example, the time…

    • 948 Words
    • 6 Pages
    Good 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
  • Satisfactory Essays

    Solutions

    • 1183 Words
    • 5 Pages

    Shortest processing time (SPT): Jobs are sequenced in order of the processing time required at the workstation, with the job requiring the least processing time at the workstation scheduled first.…

    • 1183 Words
    • 5 Pages
    Satisfactory Essays
  • Good Essays

    Human Multi-Tasking

    • 2120 Words
    • 9 Pages

    The term "multitasking" originated in the computer engineering industry.[1] It refers to the ability of a microprocessor to apparently process several tasks simultaneously.[2] Computer multitasking in single core microprocessors actually involves time-sharing the processor; only one task can actually be active at a time, but tasks are rotated through many times a second. With multi-core computers, each core can perform a separate task simultaneously.…

    • 2120 Words
    • 9 Pages
    Good Essays
  • Good Essays

    Interrupts of 8085

    • 5879 Words
    • 24 Pages

    When the Microprocessor receives an interrupt signal, it suspends the currently executing program and jumps to an Interrupt Service Routine (ISR) to respond to the incoming interrupt. Each interrupt has its own ISR. After the ISR has been executed an the purpose of the interrupt served, the processor returns to execute the task it had been engaged in previously or attend to any other pending interrupt requests.…

    • 5879 Words
    • 24 Pages
    Good Essays
  • Good Essays

    A Scheduling System in a company or any institution is usually a form of software that allows managers or administrator to construct schedules for their employees. It will often be subdivided into different modules with lists of sub-modules. The Scheduling System includes both a manual entry schedule storage system and a timetable generation system. The schedule system stores information about the schedule/timetable for each students and instructors.…

    • 574 Words
    • 3 Pages
    Good Essays