SlideShare a Scribd company logo
1 of 9
Download to read offline
IJASCSE, Vol 1 Issue 2, 2012
Sep. 30

                            Selection of scheduling Algorithm
                                    Prof S. Yashvir, Om Prakash
                                       Department of Statistics
                                    Rajdhani College of Education
                                       Rohtak, Haryana, India

      Abstract                                         major components of access time and
                                                       bandwidth of disks are:
      The objective of this paper is to take
      some aspects of disk scheduling and                            Seek time-the time to
      scheduling algorithms. The disk                                 move the heads to the
      scheduling is discussed with a sneak                            cylinder containing the
      peak in general and “selection of                               desired sector.
      algorithms” in particular.                                     Rotational     latency-the
                                                                      additional time to rotate
      Key word: Disk scheduling, Selection                            the desired sector to the
      of algorithm.                                                   disk head.
          1. Introduction                              This can be considered very important
                                                       in case of systems with multi
      The Disk is said to be of two basic              programming as they have a common
      types:                                           file system. The file system is said to
                                                       be common in multi programmed
                 1. Fixed head disk- This              systems because it is shared by all the
                    has one head for each              users even though each of them may
                    track on the disk and it           have one’s own file. This common file
                    requires      no     head          system may be spread out over a finite
                    movement        time    to         number of disks or it may reside
                    service a request. This is         entirely on a single disk.
                    quite expensive.
                 2. Movable head disk- This            Thus, all processes that do disk IO are
                    is much more common in             competing for access to the same
                    use because it has                 physical disk or set of physical disks.
                    a single head driven by a          Mostly as any given disk can only
                    stepper motor that can             perform one access at a particular
                    position the head over             time, if several accesses are
                    any desired track on the           requested on a given disk, some order
                    disk surface.                      of service for the requests is
                                                       established by the OS.
      The task of scheduling usage of
      sharable resources by the various                The only exception is that there are
      processes is one of the important jobs           two or more independent head
      of operating system as it is responsible         assemblies on some disks and so
      for efficient use of the disk drives.            those can perform two or more service
                                                       requests at a single time. However,
      The efficiency of disk drivers means             even in this type of cases too,
      that disks must have fast access time            scheduling is a must if there are more
      and reasonable bandwidth. The two                requests    outstanding     than   the
                                                       available heads to serve them.

                                                                                       1|Page
IJASCSE, Vol 1 Issue 2, 2012
Sep. 30




          2. Disk Scheduling                           memory that are ready to be executed
                                                       and
      It is now clear that there can be                makes allocation of the CPU to one of
      number of programs in memory at the              them.     The    decision    regarding
      same time that results in overlapping            scheduling takes place when a
      of CPU and I/O.                                  process switches from:
      There are batch programs that run                    running to waiting state
      without interaction from user. There                 running to ready state
      may be time shared programs that run                 waiting to ready state
      with user interaction. For both of these             Terminates
      the common name used is Process for              The scheduling of the above
      which     burst     cycle    of     CPU          processes is known as nonpreemptive.
      characterizes execution of their                 It must be noted that mostly the
      process, alternatively between CPU               scheduling quantum is not used by
      and                                              almost all processes as shown below:
      I/O activity. The scheduling makes
      selection among the processes in




                                                                                    2|Page
IJASCSE, Vol 1 Issue 2, 2012
Sep. 30




      3. Scheduling Algorithms                           way but if disk accesses are scheduled
                                                         in an order that takes into
      3.1    First Come First Serve (FCFS)               consideration some of the physical
                                                         characteristics of the disk then system
      It is similar to FIFO. It is simple, fair          can     be     improved      significantly
      approach but perhaps not the best                  throughout. For example, for the
      because of its poor performance as                 following processes request queue 98,
      average queue time may be too long                 183, 37, 122, 14, 124, 65, 67, with
      to be served. It is quite difficult to find        head pointer 53, total head movement
      the average queue and residence                    is             640              cylinders
      times for this. Of course, the simplest
      .




                                                                                         3|Page
IJASCSE, Vol 1 Issue 2, 2012
Sep. 30




      3.2   SSTF: Shortest Seek Time First

      It is much more efficient, but leads to         t( n+1 ) = w * t( n ) + ( 1 - w ) * T( n )
      starvation. It may be optimal for
      minimizing queue time, but may be               Where, t (n+1) is time of next burst.
      impossible to be implemented as it              t (n) is time of current burst.
      tries to predict the scheduled process          T (n) is average of all previous bursts
      based on previous history. It selects           W is a weighting factor emphasizing
      the request with the minimum seek               current or previous bursts.
      time from the current head position. It
      is a form of SJF scheduling; may                For Example, with head pointer at 53,
      cause starvation of some requests.              Total head movement:
      The prediction of the time used by the          98 + 183 + 37 + 122 + 14 + 124 + 65 +
      process on its next schedule can be             67 = 236 tracks or < 30 tracks per
      given by                                        access




      But SSTF can be a problem on a                  movement towards the other end,
      heavily used disk. If one request is at         servicing requests until end, where the
      the extreme and the other request is            head movement is reversed and
      nearer to the centre, the extreme               servicing continues. It is also known as
      request can be postponed for a long             the elevator algorithm because of its
      time.                                           working similar to an elevator services
                                                      in a building. When it goes up, it
      3.3   SCAN                                      requests services in order from floors
                                                      above it, but floors below it, are
      The purpose of it is to combine                 ignored. When it goes down, it only
      efficiency with fairness. The process           requests services below it. For
      starts at one end of the disk with

                                                                                        4|Page
IJASCSE, Vol 1 Issue 2, 2012
Sep. 30

      example, with head pointer 53, Total                 98 +183 + 37 + 122 + 14 + 124 +
      head movement is:                                       65 + 67 = 208 tracks




      3.4 C-SCAN: Circular SCAN                        more efficient than SCAN. By
                                                       providing a more uniform wait time and
      This algorithm is similar to SCAN. The           treating the cylinders as a circular list,
      only exception is that the disk requests         it proves better than SCAN. For
      services in one direction only and               example, with head pointer 53,
      "jumps" to the starting of disk when the
      last track is reached. This results in a         Total head movement:
      more uniform response time. Since a
      single large jump may be faster than                 98 +183 + 37 + 122 + 14 + 124 +
      several smaller ones, overall it may be                 65 + 67 = 322 tracks




                                                                                       5|Page
IJASCSE, Vol 1 Issue 2, 2012
Sep. 30

      3.5 FSCAN                                        other queue. This means that till all the
                                                       old requests gets processed, service
      With the above discussed algorithms it           of the new requests is deferred.
      may be possible that the arm may not
      move for a considerable period of time.          3.6     N-step-SCAN
      To avoid this arm stickiness the disk
      request queue can be segmented, with             This policy segments the queue of disk
      one segment being processed at a                 request into sub queues of length N
      time completely.                                 and the processing of these is one at a
                                                       time using SCAN. Till the processing
      FSCAN is an example of such an                   of a queue, new requests are added to
      approach. It is the policy that uses two         some other queue. If requests
      sub queues. When a SCAN begins, all              available are less than N, at the end of
      of the requests are in one of the                scan, then all of them are processed
      queues, with the other empty. During             with the next scan. With larger values
      the scan, requests are put into the              of     N,                            the
      performance approaches similar to                algorithm arbitrates between those
      SCAN and for N=1, it approaches                  multi level queues that can use
      FIFO.                                            feedback to move between queues.
                                                       This method is flexible but complex.
      3.7 MULTI-LEVEL QUEUE:                           For example

      This type of algorithm has multi
      queues with each queue having its
      own algorithm. Then priority based




                                                                                      6|Page
IJASCSE, Vol 1 Issue 2, 2012
Sep. 30




      3.8  MULTIPLE            PROCESSOR
      SCHEDULING:                                      4. Selection of Algorithm:

      We know that there are different rules           To determine a particular algorithm,
      for heterogeneous or homogeneous                 predetermined workload and the
      processors. For example, sharing of              performance of each algorithm for that
      load in the distribution of work in such         workload is to be determined. It can be
      a manner that all processors have an             said that
      equal amount to do work. In this each
      processor can schedule from a queue
      that is ready common or can use an
      arrangement by master slave.
           SSTF is quite common and so                      which in turn are influenced by
            naturally, it has a appeal                       the file-allocation method.
           The performance of SCAN and                     The algorithm must be written
            C-SCAN is better for system,                     as a separate module of the
            which places a heavy load on                     operating system. It must be
            the disk.                                        allowed to be replaced with
           Performances depend on the                       other one, if necessary.
            types & numbers of requests,                    For default, either SSTF or
                                                             LOOK is a reasonable choice.




      5. Conclusion:                                   A number of different scheduling
                                                       algorithms have been discussed and
                                                       which one is the best to work that


                                                                                    7|Page
IJASCSE, Vol 1 Issue 2, 2012
Sep. 30

      depends on the application of it. The
      following table shows the comparison
      of different types of algorithms (starting
      at track 100):

             FIFO                    SSTF                      SCAN                   C-SCAN
      Next      Number        Next      Number           Next      Number       Next      Number
      track     of tracks     track     of tracks        track     of tracks    track     of tracks
      Accessed traversed      accessed traversed         Accessed traversed     Accessed traversed
      55            45        90            10           150         50         150          50
      58            03        58             32          160         10         160          10
      39            19        55             03          184         24         184          24
      18            21        39             16          90          94         18          166
      90            72        38             01          58          32         38            20
      160           70        18             20          55          03         39            01
      150           10        150          132           39          16         55            16
      38            112       160            10          38          01         58            03
      184           146       184            24          18          20         90            32
      Avge seek     27.5      Avge seek     27.5         Avge seek   27.8       Avge seek    35.8


      The OS with general purpose may use                Medium term: finds when a program is
      FCFS, CSCAN, preemptive and the                    bought into main memory for
      OS with real time can opt for priority,            execution.
      no preemptive as in these OS
      performance is never obvious and                   Short term: finds which ready process
      Benchmarking is everything. The three              will be executed next by the processor.
      types of scheduling decisions taken by
                                                         The choice of algorithm depends on
      OS with respect to the execution of
                                                         expected    performance   and   on
      process are:
                                                         implementation complexity as shown
      Long term: finds when new processes                below
      are to be admitted to the system.
      :

                 Name                       Description                   Remarks
                                 Selection according to requester
      RSS                          Random scheduling             For       analysis       and
                                                                 simulation
      FIFO                         First in First Out            Fairest of them all
      PRI                          Priority by process           Control outside of queue
                                                                 management
      LIFO                         Last in First Out             Maximize locality and
                                                                 resource utilization
                              Selection according to requested ITEM
      SSTF                         Shortest service time first   High    utilization,   small
                                                                 queues
      SCAN                         Back and forth over disk      Better service distribution
      CSCAN                        One way with fast return      Lower service variability
      N-step-SCAN                  Scan of N records at a Service Guarantee

                                                                                      8|Page
IJASCSE, Vol 1 Issue 2, 2012
Sep. 30

                                  time
      FSCAN                       N step Scan with N=queue Load sensitive
                                  size at beginning of cycle

                                                      Empirical Model for Disk Accesses",
          6. References                               Communications of the ACM, January
                                                      1976, Volume 9, No. 1.
      Coffman, E. G., Klimko, L. A., and
      Ryan, B., "Analysis of Scanning
      Policies for Reducing Disk Seek
      Times", SIAM Journal of Computing,
      September 1972, Vol 1. No 3.

       Geist, Robert, and Daniel, Stephen,
      "A Continuum of Disk Scheduling
      Algorithms", ACM Transactions on
      Computer Systems, February 1987,
      Vol 5. No. 1.

      Gotlieb, C. C. and MacEwen, H.,
      "Performance of Movable-Head Disk
      Storage Devices", Journal of the ACM,
      October 1983, Vol 20. No. 4.

      Hofri, Micha, "Disk Scheduling: FCFS
      vs SSTF Revisited", Communications
      of the ACM, November 1980, Vol 23,
      No. 11.

       Marshall Kirk McKusick, William Joy,
      Sam Leffler, and R. S. Fabry, "A Fast
      File System for UNIX",          ACM
      Transactions on Computer Systems,
      Vol. 2, No. 3, August 1984, pp. 181-
      197.

       Oney, Walter C., "Queuing Analysis of
      the Scan Policy for Moving-Head
      Disks", Journal of the ACM, July 1975,
      Vol 22. No. 3.

      Teorey, Toby J. and Pinkerton, Tad B.,
      "A Comparative Analysis of Disk
      Scheduling Policies," Communications
      of the ACM, March 1972, Vol 15. No.
      3.

      Wilhelm, Neil C., "An Anomaly in Disk
      Scheduling: A Comparison of FCFS
      and SSTF Seek Scheduling Using an

                                                                                9|Page

More Related Content

What's hot

VNSISPL_DBMS_Concepts_ch23
VNSISPL_DBMS_Concepts_ch23VNSISPL_DBMS_Concepts_ch23
VNSISPL_DBMS_Concepts_ch23sriprasoon
 
Strata + Hadoop World 2012: High Availability for the HDFS NameNode Phase 2
Strata + Hadoop World 2012: High Availability for the HDFS NameNode Phase 2Strata + Hadoop World 2012: High Availability for the HDFS NameNode Phase 2
Strata + Hadoop World 2012: High Availability for the HDFS NameNode Phase 2Cloudera, Inc.
 
Multi-IMA Partition Scheduling for Global I/O Synchronization
Multi-IMA Partition Scheduling for Global I/O SynchronizationMulti-IMA Partition Scheduling for Global I/O Synchronization
Multi-IMA Partition Scheduling for Global I/O Synchronizationrtsljekim
 
LXF #102 - Linux Virtual Server
LXF #102 - Linux Virtual Server LXF #102 - Linux Virtual Server
LXF #102 - Linux Virtual Server guest69bec2
 
RH-302 Exam-Red Hat Certified Engineer on Redhat Enterprise Linux 4 (Labs)
RH-302 Exam-Red Hat Certified Engineer on Redhat Enterprise Linux 4 (Labs)RH-302 Exam-Red Hat Certified Engineer on Redhat Enterprise Linux 4 (Labs)
RH-302 Exam-Red Hat Certified Engineer on Redhat Enterprise Linux 4 (Labs)Isabella789
 
MemGuard: Memory Bandwidth Reservation System for Efficient Performance Isola...
MemGuard: Memory Bandwidth Reservation System for Efficient Performance Isola...MemGuard: Memory Bandwidth Reservation System for Efficient Performance Isola...
MemGuard: Memory Bandwidth Reservation System for Efficient Performance Isola...Heechul Yun
 
Performance Profiling of Virtual Machines
Performance Profiling of Virtual MachinesPerformance Profiling of Virtual Machines
Performance Profiling of Virtual MachinesJiaqing Du
 
HKG15-305: Real Time processing comparing the RT patch vs Core isolation
HKG15-305: Real Time processing comparing the RT patch vs Core isolationHKG15-305: Real Time processing comparing the RT patch vs Core isolation
HKG15-305: Real Time processing comparing the RT patch vs Core isolationLinaro
 
Lvs mini-howto
Lvs mini-howtoLvs mini-howto
Lvs mini-howtoSanjib Dey
 
Real-time soultion
Real-time soultionReal-time soultion
Real-time soultionNylon
 
SSD based storage tuning for databases
SSD based storage tuning for databasesSSD based storage tuning for databases
SSD based storage tuning for databasesAngelo Rajadurai
 
Informix Warehouse Accelerator on Cluster
Informix Warehouse Accelerator on ClusterInformix Warehouse Accelerator on Cluster
Informix Warehouse Accelerator on ClusterAndreas Breitfeld
 

What's hot (19)

os
osos
os
 
06threadsimp
06threadsimp06threadsimp
06threadsimp
 
Preempt_rt realtime patch
Preempt_rt realtime patchPreempt_rt realtime patch
Preempt_rt realtime patch
 
Priority Inversion on Mars
Priority Inversion on MarsPriority Inversion on Mars
Priority Inversion on Mars
 
VNSISPL_DBMS_Concepts_ch23
VNSISPL_DBMS_Concepts_ch23VNSISPL_DBMS_Concepts_ch23
VNSISPL_DBMS_Concepts_ch23
 
distcom-short-20140112-1600
distcom-short-20140112-1600distcom-short-20140112-1600
distcom-short-20140112-1600
 
Strata + Hadoop World 2012: High Availability for the HDFS NameNode Phase 2
Strata + Hadoop World 2012: High Availability for the HDFS NameNode Phase 2Strata + Hadoop World 2012: High Availability for the HDFS NameNode Phase 2
Strata + Hadoop World 2012: High Availability for the HDFS NameNode Phase 2
 
01intro
01intro01intro
01intro
 
Multi-IMA Partition Scheduling for Global I/O Synchronization
Multi-IMA Partition Scheduling for Global I/O SynchronizationMulti-IMA Partition Scheduling for Global I/O Synchronization
Multi-IMA Partition Scheduling for Global I/O Synchronization
 
LXF #102 - Linux Virtual Server
LXF #102 - Linux Virtual Server LXF #102 - Linux Virtual Server
LXF #102 - Linux Virtual Server
 
RH-302 Exam-Red Hat Certified Engineer on Redhat Enterprise Linux 4 (Labs)
RH-302 Exam-Red Hat Certified Engineer on Redhat Enterprise Linux 4 (Labs)RH-302 Exam-Red Hat Certified Engineer on Redhat Enterprise Linux 4 (Labs)
RH-302 Exam-Red Hat Certified Engineer on Redhat Enterprise Linux 4 (Labs)
 
MemGuard: Memory Bandwidth Reservation System for Efficient Performance Isola...
MemGuard: Memory Bandwidth Reservation System for Efficient Performance Isola...MemGuard: Memory Bandwidth Reservation System for Efficient Performance Isola...
MemGuard: Memory Bandwidth Reservation System for Efficient Performance Isola...
 
Performance Profiling of Virtual Machines
Performance Profiling of Virtual MachinesPerformance Profiling of Virtual Machines
Performance Profiling of Virtual Machines
 
HKG15-305: Real Time processing comparing the RT patch vs Core isolation
HKG15-305: Real Time processing comparing the RT patch vs Core isolationHKG15-305: Real Time processing comparing the RT patch vs Core isolation
HKG15-305: Real Time processing comparing the RT patch vs Core isolation
 
Lvs mini-howto
Lvs mini-howtoLvs mini-howto
Lvs mini-howto
 
DTraceCloud2012
DTraceCloud2012DTraceCloud2012
DTraceCloud2012
 
Real-time soultion
Real-time soultionReal-time soultion
Real-time soultion
 
SSD based storage tuning for databases
SSD based storage tuning for databasesSSD based storage tuning for databases
SSD based storage tuning for databases
 
Informix Warehouse Accelerator on Cluster
Informix Warehouse Accelerator on ClusterInformix Warehouse Accelerator on Cluster
Informix Warehouse Accelerator on Cluster
 

Similar to Disk scheduling

OS Slide Ch12 13
OS Slide Ch12 13OS Slide Ch12 13
OS Slide Ch12 13庭緯 陳
 
What is the average rotational latency of this disk drive What seek.docx
 What is the average rotational latency of this disk drive  What seek.docx What is the average rotational latency of this disk drive  What seek.docx
What is the average rotational latency of this disk drive What seek.docxajoy21
 
File Management in Operating Systems
File Management in Operating SystemsFile Management in Operating Systems
File Management in Operating Systemsvampugani
 
Ch14 OS
Ch14 OSCh14 OS
Ch14 OSC.U
 
Mass Storage Structure
Mass Storage StructureMass Storage Structure
Mass Storage StructureVimalanathan D
 
LM9 - OPERATIONS, SCHEDULING, Inter process xommuncation
LM9 - OPERATIONS, SCHEDULING, Inter process xommuncationLM9 - OPERATIONS, SCHEDULING, Inter process xommuncation
LM9 - OPERATIONS, SCHEDULING, Inter process xommuncationMani Deepak Choudhry
 
cpu scheduling by shivam singh
cpu scheduling by shivam singhcpu scheduling by shivam singh
cpu scheduling by shivam singhshivam71291
 
Operation System
Operation SystemOperation System
Operation SystemANANTHI1997
 
Introduction to OS LEVEL Virtualization & Containers
Introduction to OS LEVEL Virtualization & ContainersIntroduction to OS LEVEL Virtualization & Containers
Introduction to OS LEVEL Virtualization & ContainersVaibhav Sharma
 
Erlang Cache
Erlang CacheErlang Cache
Erlang Cacheice j
 

Similar to Disk scheduling (20)

OS Slide Ch12 13
OS Slide Ch12 13OS Slide Ch12 13
OS Slide Ch12 13
 
unit-4.pdf
unit-4.pdfunit-4.pdf
unit-4.pdf
 
What is the average rotational latency of this disk drive What seek.docx
 What is the average rotational latency of this disk drive  What seek.docx What is the average rotational latency of this disk drive  What seek.docx
What is the average rotational latency of this disk drive What seek.docx
 
I/O structure slide by Rajalakshmi SKC
I/O structure slide by Rajalakshmi SKCI/O structure slide by Rajalakshmi SKC
I/O structure slide by Rajalakshmi SKC
 
Mass storage systemsos
Mass storage systemsosMass storage systemsos
Mass storage systemsos
 
Operating system.pptx
Operating system.pptxOperating system.pptx
Operating system.pptx
 
File Management in Operating Systems
File Management in Operating SystemsFile Management in Operating Systems
File Management in Operating Systems
 
OSCh14
OSCh14OSCh14
OSCh14
 
OS_Ch14
OS_Ch14OS_Ch14
OS_Ch14
 
Ch14 OS
Ch14 OSCh14 OS
Ch14 OS
 
CH10.pdf
CH10.pdfCH10.pdf
CH10.pdf
 
Os
OsOs
Os
 
Pandi
PandiPandi
Pandi
 
Mass Storage Structure
Mass Storage StructureMass Storage Structure
Mass Storage Structure
 
LM9 - OPERATIONS, SCHEDULING, Inter process xommuncation
LM9 - OPERATIONS, SCHEDULING, Inter process xommuncationLM9 - OPERATIONS, SCHEDULING, Inter process xommuncation
LM9 - OPERATIONS, SCHEDULING, Inter process xommuncation
 
cpu scheduling by shivam singh
cpu scheduling by shivam singhcpu scheduling by shivam singh
cpu scheduling by shivam singh
 
Operation System
Operation SystemOperation System
Operation System
 
Introduction to OS LEVEL Virtualization & Containers
Introduction to OS LEVEL Virtualization & ContainersIntroduction to OS LEVEL Virtualization & Containers
Introduction to OS LEVEL Virtualization & Containers
 
OS ppt.pdf
OS ppt.pdfOS ppt.pdf
OS ppt.pdf
 
Erlang Cache
Erlang CacheErlang Cache
Erlang Cache
 

More from IJASCSE

Inter Time Series Sales Forecasting
Inter Time Series Sales ForecastingInter Time Series Sales Forecasting
Inter Time Series Sales ForecastingIJASCSE
 
Independent Component Analysis for Filtering Airwaves in Seabed Logging Appli...
Independent Component Analysis for Filtering Airwaves in Seabed Logging Appli...Independent Component Analysis for Filtering Airwaves in Seabed Logging Appli...
Independent Component Analysis for Filtering Airwaves in Seabed Logging Appli...IJASCSE
 
Enhanced Performance of Search Engine with Multitype Feature Co-Selection of ...
Enhanced Performance of Search Engine with Multitype Feature Co-Selection of ...Enhanced Performance of Search Engine with Multitype Feature Co-Selection of ...
Enhanced Performance of Search Engine with Multitype Feature Co-Selection of ...IJASCSE
 
Improving Utilization of Infrastructure Cloud
Improving Utilization of Infrastructure CloudImproving Utilization of Infrastructure Cloud
Improving Utilization of Infrastructure CloudIJASCSE
 
Four Side Distance: A New Fourier Shape Signature
Four Side Distance: A New Fourier Shape SignatureFour Side Distance: A New Fourier Shape Signature
Four Side Distance: A New Fourier Shape SignatureIJASCSE
 
Theoretical study of axially compressed Cold Formed Steel Sections
Theoretical study of axially compressed Cold Formed Steel SectionsTheoretical study of axially compressed Cold Formed Steel Sections
Theoretical study of axially compressed Cold Formed Steel SectionsIJASCSE
 
Improved Performance of Unsupervised Method by Renovated K-Means
Improved Performance of Unsupervised Method by Renovated K-MeansImproved Performance of Unsupervised Method by Renovated K-Means
Improved Performance of Unsupervised Method by Renovated K-MeansIJASCSE
 
A Study on the Effectiveness of Computer Games in Teaching and Learning
A Study on the Effectiveness of Computer Games in Teaching and LearningA Study on the Effectiveness of Computer Games in Teaching and Learning
A Study on the Effectiveness of Computer Games in Teaching and LearningIJASCSE
 
Clustering Based Lifetime Maximizing Aggregation Tree for Wireless Sensor Net...
Clustering Based Lifetime Maximizing Aggregation Tree for Wireless Sensor Net...Clustering Based Lifetime Maximizing Aggregation Tree for Wireless Sensor Net...
Clustering Based Lifetime Maximizing Aggregation Tree for Wireless Sensor Net...IJASCSE
 
Design Equation for CFRP strengthened Cold Formed Steel Channel Column Sections
Design Equation for CFRP strengthened Cold Formed Steel Channel Column SectionsDesign Equation for CFRP strengthened Cold Formed Steel Channel Column Sections
Design Equation for CFRP strengthened Cold Formed Steel Channel Column SectionsIJASCSE
 
OfdmaClosed-Form Rate Outage Probability for OFDMA Multi-Hop Broadband Wirele...
OfdmaClosed-Form Rate Outage Probability for OFDMA Multi-Hop Broadband Wirele...OfdmaClosed-Form Rate Outage Probability for OFDMA Multi-Hop Broadband Wirele...
OfdmaClosed-Form Rate Outage Probability for OFDMA Multi-Hop Broadband Wirele...IJASCSE
 
A Study on Thermal behavior of Nano film as thermal interface layer
A Study on Thermal behavior of Nano film as thermal interface layerA Study on Thermal behavior of Nano film as thermal interface layer
A Study on Thermal behavior of Nano film as thermal interface layerIJASCSE
 
Performance analysis of a model predictive unified power flow controller (MPU...
Performance analysis of a model predictive unified power flow controller (MPU...Performance analysis of a model predictive unified power flow controller (MPU...
Performance analysis of a model predictive unified power flow controller (MPU...IJASCSE
 
Synthesis and structural properties of Mg (OH)2 on RF sputtered Mg thin films...
Synthesis and structural properties of Mg (OH)2 on RF sputtered Mg thin films...Synthesis and structural properties of Mg (OH)2 on RF sputtered Mg thin films...
Synthesis and structural properties of Mg (OH)2 on RF sputtered Mg thin films...IJASCSE
 
Evaluation of Exception Handling Metrics
Evaluation of Exception Handling MetricsEvaluation of Exception Handling Metrics
Evaluation of Exception Handling MetricsIJASCSE
 
Investigation of Integrated Rectangular SIW Filter and Rectangular Microstrip...
Investigation of Integrated Rectangular SIW Filter and Rectangular Microstrip...Investigation of Integrated Rectangular SIW Filter and Rectangular Microstrip...
Investigation of Integrated Rectangular SIW Filter and Rectangular Microstrip...IJASCSE
 
An effect of synthesis parameters on structural properties of AlN thin films ...
An effect of synthesis parameters on structural properties of AlN thin films ...An effect of synthesis parameters on structural properties of AlN thin films ...
An effect of synthesis parameters on structural properties of AlN thin films ...IJASCSE
 
Cluster-based Target Tracking and Recovery Algorithm in Wireless Sensor Network
Cluster-based Target Tracking and Recovery Algorithm in Wireless Sensor NetworkCluster-based Target Tracking and Recovery Algorithm in Wireless Sensor Network
Cluster-based Target Tracking and Recovery Algorithm in Wireless Sensor NetworkIJASCSE
 
Analysis and Design of Lead Salt PbSe/PbSrSe Single Quantum Well In the Infra...
Analysis and Design of Lead Salt PbSe/PbSrSe Single Quantum Well In the Infra...Analysis and Design of Lead Salt PbSe/PbSrSe Single Quantum Well In the Infra...
Analysis and Design of Lead Salt PbSe/PbSrSe Single Quantum Well In the Infra...IJASCSE
 
Portfolio Analysis in US stock market using Markowitz model
Portfolio Analysis in US stock market using Markowitz modelPortfolio Analysis in US stock market using Markowitz model
Portfolio Analysis in US stock market using Markowitz modelIJASCSE
 

More from IJASCSE (20)

Inter Time Series Sales Forecasting
Inter Time Series Sales ForecastingInter Time Series Sales Forecasting
Inter Time Series Sales Forecasting
 
Independent Component Analysis for Filtering Airwaves in Seabed Logging Appli...
Independent Component Analysis for Filtering Airwaves in Seabed Logging Appli...Independent Component Analysis for Filtering Airwaves in Seabed Logging Appli...
Independent Component Analysis for Filtering Airwaves in Seabed Logging Appli...
 
Enhanced Performance of Search Engine with Multitype Feature Co-Selection of ...
Enhanced Performance of Search Engine with Multitype Feature Co-Selection of ...Enhanced Performance of Search Engine with Multitype Feature Co-Selection of ...
Enhanced Performance of Search Engine with Multitype Feature Co-Selection of ...
 
Improving Utilization of Infrastructure Cloud
Improving Utilization of Infrastructure CloudImproving Utilization of Infrastructure Cloud
Improving Utilization of Infrastructure Cloud
 
Four Side Distance: A New Fourier Shape Signature
Four Side Distance: A New Fourier Shape SignatureFour Side Distance: A New Fourier Shape Signature
Four Side Distance: A New Fourier Shape Signature
 
Theoretical study of axially compressed Cold Formed Steel Sections
Theoretical study of axially compressed Cold Formed Steel SectionsTheoretical study of axially compressed Cold Formed Steel Sections
Theoretical study of axially compressed Cold Formed Steel Sections
 
Improved Performance of Unsupervised Method by Renovated K-Means
Improved Performance of Unsupervised Method by Renovated K-MeansImproved Performance of Unsupervised Method by Renovated K-Means
Improved Performance of Unsupervised Method by Renovated K-Means
 
A Study on the Effectiveness of Computer Games in Teaching and Learning
A Study on the Effectiveness of Computer Games in Teaching and LearningA Study on the Effectiveness of Computer Games in Teaching and Learning
A Study on the Effectiveness of Computer Games in Teaching and Learning
 
Clustering Based Lifetime Maximizing Aggregation Tree for Wireless Sensor Net...
Clustering Based Lifetime Maximizing Aggregation Tree for Wireless Sensor Net...Clustering Based Lifetime Maximizing Aggregation Tree for Wireless Sensor Net...
Clustering Based Lifetime Maximizing Aggregation Tree for Wireless Sensor Net...
 
Design Equation for CFRP strengthened Cold Formed Steel Channel Column Sections
Design Equation for CFRP strengthened Cold Formed Steel Channel Column SectionsDesign Equation for CFRP strengthened Cold Formed Steel Channel Column Sections
Design Equation for CFRP strengthened Cold Formed Steel Channel Column Sections
 
OfdmaClosed-Form Rate Outage Probability for OFDMA Multi-Hop Broadband Wirele...
OfdmaClosed-Form Rate Outage Probability for OFDMA Multi-Hop Broadband Wirele...OfdmaClosed-Form Rate Outage Probability for OFDMA Multi-Hop Broadband Wirele...
OfdmaClosed-Form Rate Outage Probability for OFDMA Multi-Hop Broadband Wirele...
 
A Study on Thermal behavior of Nano film as thermal interface layer
A Study on Thermal behavior of Nano film as thermal interface layerA Study on Thermal behavior of Nano film as thermal interface layer
A Study on Thermal behavior of Nano film as thermal interface layer
 
Performance analysis of a model predictive unified power flow controller (MPU...
Performance analysis of a model predictive unified power flow controller (MPU...Performance analysis of a model predictive unified power flow controller (MPU...
Performance analysis of a model predictive unified power flow controller (MPU...
 
Synthesis and structural properties of Mg (OH)2 on RF sputtered Mg thin films...
Synthesis and structural properties of Mg (OH)2 on RF sputtered Mg thin films...Synthesis and structural properties of Mg (OH)2 on RF sputtered Mg thin films...
Synthesis and structural properties of Mg (OH)2 on RF sputtered Mg thin films...
 
Evaluation of Exception Handling Metrics
Evaluation of Exception Handling MetricsEvaluation of Exception Handling Metrics
Evaluation of Exception Handling Metrics
 
Investigation of Integrated Rectangular SIW Filter and Rectangular Microstrip...
Investigation of Integrated Rectangular SIW Filter and Rectangular Microstrip...Investigation of Integrated Rectangular SIW Filter and Rectangular Microstrip...
Investigation of Integrated Rectangular SIW Filter and Rectangular Microstrip...
 
An effect of synthesis parameters on structural properties of AlN thin films ...
An effect of synthesis parameters on structural properties of AlN thin films ...An effect of synthesis parameters on structural properties of AlN thin films ...
An effect of synthesis parameters on structural properties of AlN thin films ...
 
Cluster-based Target Tracking and Recovery Algorithm in Wireless Sensor Network
Cluster-based Target Tracking and Recovery Algorithm in Wireless Sensor NetworkCluster-based Target Tracking and Recovery Algorithm in Wireless Sensor Network
Cluster-based Target Tracking and Recovery Algorithm in Wireless Sensor Network
 
Analysis and Design of Lead Salt PbSe/PbSrSe Single Quantum Well In the Infra...
Analysis and Design of Lead Salt PbSe/PbSrSe Single Quantum Well In the Infra...Analysis and Design of Lead Salt PbSe/PbSrSe Single Quantum Well In the Infra...
Analysis and Design of Lead Salt PbSe/PbSrSe Single Quantum Well In the Infra...
 
Portfolio Analysis in US stock market using Markowitz model
Portfolio Analysis in US stock market using Markowitz modelPortfolio Analysis in US stock market using Markowitz model
Portfolio Analysis in US stock market using Markowitz model
 

Recently uploaded

THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
Integumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptIntegumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptshraddhaparab530
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4JOYLYNSAMANIEGO
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxVanesaIglesias10
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfPatidar M
 
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...JojoEDelaCruz
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxlancelewisportillo
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptxmary850239
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfErwinPantujan2
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmStan Meyer
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 

Recently uploaded (20)

THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
Integumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptIntegumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.ppt
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptx
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdf
 
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
 
Paradigm shift in nursing research by RS MEHTA
Paradigm shift in nursing research by RS MEHTAParadigm shift in nursing research by RS MEHTA
Paradigm shift in nursing research by RS MEHTA
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and Film
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 

Disk scheduling

  • 1. IJASCSE, Vol 1 Issue 2, 2012 Sep. 30 Selection of scheduling Algorithm Prof S. Yashvir, Om Prakash Department of Statistics Rajdhani College of Education Rohtak, Haryana, India Abstract major components of access time and bandwidth of disks are: The objective of this paper is to take some aspects of disk scheduling and  Seek time-the time to scheduling algorithms. The disk move the heads to the scheduling is discussed with a sneak cylinder containing the peak in general and “selection of desired sector. algorithms” in particular.  Rotational latency-the additional time to rotate Key word: Disk scheduling, Selection the desired sector to the of algorithm. disk head. 1. Introduction This can be considered very important in case of systems with multi The Disk is said to be of two basic programming as they have a common types: file system. The file system is said to be common in multi programmed 1. Fixed head disk- This systems because it is shared by all the has one head for each users even though each of them may track on the disk and it have one’s own file. This common file requires no head system may be spread out over a finite movement time to number of disks or it may reside service a request. This is entirely on a single disk. quite expensive. 2. Movable head disk- This Thus, all processes that do disk IO are is much more common in competing for access to the same use because it has physical disk or set of physical disks. a single head driven by a Mostly as any given disk can only stepper motor that can perform one access at a particular position the head over time, if several accesses are any desired track on the requested on a given disk, some order disk surface. of service for the requests is established by the OS. The task of scheduling usage of sharable resources by the various The only exception is that there are processes is one of the important jobs two or more independent head of operating system as it is responsible assemblies on some disks and so for efficient use of the disk drives. those can perform two or more service requests at a single time. However, The efficiency of disk drivers means even in this type of cases too, that disks must have fast access time scheduling is a must if there are more and reasonable bandwidth. The two requests outstanding than the available heads to serve them. 1|Page
  • 2. IJASCSE, Vol 1 Issue 2, 2012 Sep. 30 2. Disk Scheduling memory that are ready to be executed and It is now clear that there can be makes allocation of the CPU to one of number of programs in memory at the them. The decision regarding same time that results in overlapping scheduling takes place when a of CPU and I/O. process switches from: There are batch programs that run  running to waiting state without interaction from user. There  running to ready state may be time shared programs that run  waiting to ready state with user interaction. For both of these  Terminates the common name used is Process for The scheduling of the above which burst cycle of CPU processes is known as nonpreemptive. characterizes execution of their It must be noted that mostly the process, alternatively between CPU scheduling quantum is not used by and almost all processes as shown below: I/O activity. The scheduling makes selection among the processes in 2|Page
  • 3. IJASCSE, Vol 1 Issue 2, 2012 Sep. 30 3. Scheduling Algorithms way but if disk accesses are scheduled in an order that takes into 3.1 First Come First Serve (FCFS) consideration some of the physical characteristics of the disk then system It is similar to FIFO. It is simple, fair can be improved significantly approach but perhaps not the best throughout. For example, for the because of its poor performance as following processes request queue 98, average queue time may be too long 183, 37, 122, 14, 124, 65, 67, with to be served. It is quite difficult to find head pointer 53, total head movement the average queue and residence is 640 cylinders times for this. Of course, the simplest . 3|Page
  • 4. IJASCSE, Vol 1 Issue 2, 2012 Sep. 30 3.2 SSTF: Shortest Seek Time First It is much more efficient, but leads to t( n+1 ) = w * t( n ) + ( 1 - w ) * T( n ) starvation. It may be optimal for minimizing queue time, but may be Where, t (n+1) is time of next burst. impossible to be implemented as it t (n) is time of current burst. tries to predict the scheduled process T (n) is average of all previous bursts based on previous history. It selects W is a weighting factor emphasizing the request with the minimum seek current or previous bursts. time from the current head position. It is a form of SJF scheduling; may For Example, with head pointer at 53, cause starvation of some requests. Total head movement: The prediction of the time used by the 98 + 183 + 37 + 122 + 14 + 124 + 65 + process on its next schedule can be 67 = 236 tracks or < 30 tracks per given by access But SSTF can be a problem on a movement towards the other end, heavily used disk. If one request is at servicing requests until end, where the the extreme and the other request is head movement is reversed and nearer to the centre, the extreme servicing continues. It is also known as request can be postponed for a long the elevator algorithm because of its time. working similar to an elevator services in a building. When it goes up, it 3.3 SCAN requests services in order from floors above it, but floors below it, are The purpose of it is to combine ignored. When it goes down, it only efficiency with fairness. The process requests services below it. For starts at one end of the disk with 4|Page
  • 5. IJASCSE, Vol 1 Issue 2, 2012 Sep. 30 example, with head pointer 53, Total 98 +183 + 37 + 122 + 14 + 124 + head movement is: 65 + 67 = 208 tracks 3.4 C-SCAN: Circular SCAN more efficient than SCAN. By providing a more uniform wait time and This algorithm is similar to SCAN. The treating the cylinders as a circular list, only exception is that the disk requests it proves better than SCAN. For services in one direction only and example, with head pointer 53, "jumps" to the starting of disk when the last track is reached. This results in a Total head movement: more uniform response time. Since a single large jump may be faster than 98 +183 + 37 + 122 + 14 + 124 + several smaller ones, overall it may be 65 + 67 = 322 tracks 5|Page
  • 6. IJASCSE, Vol 1 Issue 2, 2012 Sep. 30 3.5 FSCAN other queue. This means that till all the old requests gets processed, service With the above discussed algorithms it of the new requests is deferred. may be possible that the arm may not move for a considerable period of time. 3.6 N-step-SCAN To avoid this arm stickiness the disk request queue can be segmented, with This policy segments the queue of disk one segment being processed at a request into sub queues of length N time completely. and the processing of these is one at a time using SCAN. Till the processing FSCAN is an example of such an of a queue, new requests are added to approach. It is the policy that uses two some other queue. If requests sub queues. When a SCAN begins, all available are less than N, at the end of of the requests are in one of the scan, then all of them are processed queues, with the other empty. During with the next scan. With larger values the scan, requests are put into the of N, the performance approaches similar to algorithm arbitrates between those SCAN and for N=1, it approaches multi level queues that can use FIFO. feedback to move between queues. This method is flexible but complex. 3.7 MULTI-LEVEL QUEUE: For example This type of algorithm has multi queues with each queue having its own algorithm. Then priority based 6|Page
  • 7. IJASCSE, Vol 1 Issue 2, 2012 Sep. 30 3.8 MULTIPLE PROCESSOR SCHEDULING: 4. Selection of Algorithm: We know that there are different rules To determine a particular algorithm, for heterogeneous or homogeneous predetermined workload and the processors. For example, sharing of performance of each algorithm for that load in the distribution of work in such workload is to be determined. It can be a manner that all processors have an said that equal amount to do work. In this each processor can schedule from a queue that is ready common or can use an arrangement by master slave.  SSTF is quite common and so which in turn are influenced by naturally, it has a appeal the file-allocation method.  The performance of SCAN and  The algorithm must be written C-SCAN is better for system, as a separate module of the which places a heavy load on operating system. It must be the disk. allowed to be replaced with  Performances depend on the other one, if necessary. types & numbers of requests,  For default, either SSTF or LOOK is a reasonable choice. 5. Conclusion: A number of different scheduling algorithms have been discussed and which one is the best to work that 7|Page
  • 8. IJASCSE, Vol 1 Issue 2, 2012 Sep. 30 depends on the application of it. The following table shows the comparison of different types of algorithms (starting at track 100): FIFO SSTF SCAN C-SCAN Next Number Next Number Next Number Next Number track of tracks track of tracks track of tracks track of tracks Accessed traversed accessed traversed Accessed traversed Accessed traversed 55 45 90 10 150 50 150 50 58 03 58 32 160 10 160 10 39 19 55 03 184 24 184 24 18 21 39 16 90 94 18 166 90 72 38 01 58 32 38 20 160 70 18 20 55 03 39 01 150 10 150 132 39 16 55 16 38 112 160 10 38 01 58 03 184 146 184 24 18 20 90 32 Avge seek 27.5 Avge seek 27.5 Avge seek 27.8 Avge seek 35.8 The OS with general purpose may use Medium term: finds when a program is FCFS, CSCAN, preemptive and the bought into main memory for OS with real time can opt for priority, execution. no preemptive as in these OS performance is never obvious and Short term: finds which ready process Benchmarking is everything. The three will be executed next by the processor. types of scheduling decisions taken by The choice of algorithm depends on OS with respect to the execution of expected performance and on process are: implementation complexity as shown Long term: finds when new processes below are to be admitted to the system. : Name Description Remarks Selection according to requester RSS Random scheduling For analysis and simulation FIFO First in First Out Fairest of them all PRI Priority by process Control outside of queue management LIFO Last in First Out Maximize locality and resource utilization Selection according to requested ITEM SSTF Shortest service time first High utilization, small queues SCAN Back and forth over disk Better service distribution CSCAN One way with fast return Lower service variability N-step-SCAN Scan of N records at a Service Guarantee 8|Page
  • 9. IJASCSE, Vol 1 Issue 2, 2012 Sep. 30 time FSCAN N step Scan with N=queue Load sensitive size at beginning of cycle Empirical Model for Disk Accesses", 6. References Communications of the ACM, January 1976, Volume 9, No. 1. Coffman, E. G., Klimko, L. A., and Ryan, B., "Analysis of Scanning Policies for Reducing Disk Seek Times", SIAM Journal of Computing, September 1972, Vol 1. No 3. Geist, Robert, and Daniel, Stephen, "A Continuum of Disk Scheduling Algorithms", ACM Transactions on Computer Systems, February 1987, Vol 5. No. 1. Gotlieb, C. C. and MacEwen, H., "Performance of Movable-Head Disk Storage Devices", Journal of the ACM, October 1983, Vol 20. No. 4. Hofri, Micha, "Disk Scheduling: FCFS vs SSTF Revisited", Communications of the ACM, November 1980, Vol 23, No. 11. Marshall Kirk McKusick, William Joy, Sam Leffler, and R. S. Fabry, "A Fast File System for UNIX", ACM Transactions on Computer Systems, Vol. 2, No. 3, August 1984, pp. 181- 197. Oney, Walter C., "Queuing Analysis of the Scan Policy for Moving-Head Disks", Journal of the ACM, July 1975, Vol 22. No. 3. Teorey, Toby J. and Pinkerton, Tad B., "A Comparative Analysis of Disk Scheduling Policies," Communications of the ACM, March 1972, Vol 15. No. 3. Wilhelm, Neil C., "An Anomaly in Disk Scheduling: A Comparison of FCFS and SSTF Seek Scheduling Using an 9|Page