SlideShare a Scribd company logo
1 of 16
C-SCAN Scheduling

• C-SCAN Scheduling is a variant of SCAN
  Scheduling
• It is designed to provide uniform wait time

• Like SCAN, C-SCAN moves the head from one end
  of the disk to other end, servicing requests along the
  way


                       http://raj-os.blogspot.in/          1
C-SCAN Scheduling

• When the head reaches the other end,
   – it immediately returns to the beginning of the disk,

   – without servicing any requests on the return trip

• Treats the cylinders as a circular list that wraps
  around from the last cylinder to the first one




                          http://raj-os.blogspot.in/        2
C-SCAN Scheduling

• Consider for example an ordered disk queue with
  requests involving
   – Tracks 98, 183, 37, 122, 14, 124, 65, 67

   – Head pointer 53

• The request queue (0-199)



                       http://raj-os.blogspot.in/   3
C-SCAN Scheduling


• If the disk head is initially at cylinder 53,
   – it will first move from 53 to 65, (towards right)
   – then to 67, 98, 122, 124, 183,199, 0, 14 and 37 as shown in
     the next slides




                         http://raj-os.blogspot.in/            4
C-SCAN Scheduling




  Initial head position
      http://raj-os.blogspot.in/   5
C-SCAN Scheduling




Head movement from 53 to 65

        http://raj-os.blogspot.in/   6
C-SCAN Scheduling




Head movement from 65th to 67

         http://raj-os.blogspot.in/   7
C-SCAN Scheduling




Head movement from 67 to 98

       http://raj-os.blogspot.in/   8
C-SCAN Scheduling




Head movement from 98 to 122

       http://raj-os.blogspot.in/   9
C-SCAN Scheduling




Head movement from 122 to 124

        http://raj-os.blogspot.in/   10
C-SCAN Scheduling




Head movement from 124 to 183

         http://raj-os.blogspot.in/   11
C-SCAN Scheduling




Head moved to the extreme track

         http://raj-os.blogspot.in/   12
C-SCAN Scheduling




Head is moved from one extreme end to the other

               http://raj-os.blogspot.in/         13
C-SCAN Scheduling




Head is moving from 0 to 14th track

           http://raj-os.blogspot.in/   14
C-SCAN Scheduling




Head is moved from 14th to 37th track

            http://raj-os.blogspot.in/   15
C-SCAN Scheduling

• Advantages

  – Better than SCAN Scheduling in terms of waiting
    time
  – i.e., provides uniform waiting time

• Disadvantages

  – It is not optimal

                        http://raj-os.blogspot.in/    16

More Related Content

What's hot

Microprogram Control
Microprogram Control Microprogram Control
Microprogram Control Anuj Modi
 
Instruction Set Architecture (ISA)
Instruction Set Architecture (ISA)Instruction Set Architecture (ISA)
Instruction Set Architecture (ISA)Gaditek
 
Disk scheduling algorithm.52
Disk scheduling algorithm.52Disk scheduling algorithm.52
Disk scheduling algorithm.52myrajendra
 
Memory Technology
Memory TechnologyMemory Technology
Memory Technologylogicgate
 
Register Reference Instructions | Computer Science
Register Reference Instructions | Computer ScienceRegister Reference Instructions | Computer Science
Register Reference Instructions | Computer ScienceTransweb Global Inc
 
Data transfer and manipulation
Data transfer and manipulationData transfer and manipulation
Data transfer and manipulationSanjeev Patel
 
Direct Memory Access(DMA)
Direct Memory Access(DMA)Direct Memory Access(DMA)
Direct Memory Access(DMA)Page Maker
 
Fcfs scheduling
Fcfs schedulingFcfs scheduling
Fcfs schedulingmyrajendra
 
Introduction to Assembly Language
Introduction to Assembly LanguageIntroduction to Assembly Language
Introduction to Assembly LanguageMotaz Saad
 
Introduction to parallel processing
Introduction to parallel processingIntroduction to parallel processing
Introduction to parallel processingPage Maker
 
Control Unit Design
Control Unit DesignControl Unit Design
Control Unit DesignVinit Raut
 
Flynns classification
Flynns classificationFlynns classification
Flynns classificationYasir Khan
 
Computer architecture multi processor
Computer architecture multi processorComputer architecture multi processor
Computer architecture multi processorMazin Alwaaly
 

What's hot (20)

DMA operation
DMA operationDMA operation
DMA operation
 
Cache
CacheCache
Cache
 
Parallel processing and pipelining
Parallel processing and pipeliningParallel processing and pipelining
Parallel processing and pipelining
 
Microprogram Control
Microprogram Control Microprogram Control
Microprogram Control
 
Instruction Set Architecture (ISA)
Instruction Set Architecture (ISA)Instruction Set Architecture (ISA)
Instruction Set Architecture (ISA)
 
Disk scheduling algorithm.52
Disk scheduling algorithm.52Disk scheduling algorithm.52
Disk scheduling algorithm.52
 
Memory Technology
Memory TechnologyMemory Technology
Memory Technology
 
Register Reference Instructions | Computer Science
Register Reference Instructions | Computer ScienceRegister Reference Instructions | Computer Science
Register Reference Instructions | Computer Science
 
Disk scheduling
Disk schedulingDisk scheduling
Disk scheduling
 
Process scheduling
Process schedulingProcess scheduling
Process scheduling
 
Data transfer and manipulation
Data transfer and manipulationData transfer and manipulation
Data transfer and manipulation
 
Dma
DmaDma
Dma
 
Direct Memory Access(DMA)
Direct Memory Access(DMA)Direct Memory Access(DMA)
Direct Memory Access(DMA)
 
Fcfs scheduling
Fcfs schedulingFcfs scheduling
Fcfs scheduling
 
pipelining
pipeliningpipelining
pipelining
 
Introduction to Assembly Language
Introduction to Assembly LanguageIntroduction to Assembly Language
Introduction to Assembly Language
 
Introduction to parallel processing
Introduction to parallel processingIntroduction to parallel processing
Introduction to parallel processing
 
Control Unit Design
Control Unit DesignControl Unit Design
Control Unit Design
 
Flynns classification
Flynns classificationFlynns classification
Flynns classification
 
Computer architecture multi processor
Computer architecture multi processorComputer architecture multi processor
Computer architecture multi processor
 

Viewers also liked

First-Come-First-Serve (FCFS)
First-Come-First-Serve (FCFS)First-Come-First-Serve (FCFS)
First-Come-First-Serve (FCFS)nikeAthena
 
Disk scheduling.49
Disk scheduling.49Disk scheduling.49
Disk scheduling.49myrajendra
 
Index allocation 48 1
Index allocation 48 1Index allocation 48 1
Index allocation 48 1myrajendra
 
Present Continuous
Present ContinuousPresent Continuous
Present Continuouslupitath09
 
Open and online: connections, community and reality
Open and online: connections, community and reality Open and online: connections, community and reality
Open and online: connections, community and reality Catherine Cronin
 
Garbage Collection without Paging
Garbage Collection without PagingGarbage Collection without Paging
Garbage Collection without PagingEmery Berger
 
Copenhagen Open For Connections Dias
Copenhagen Open For Connections DiasCopenhagen Open For Connections Dias
Copenhagen Open For Connections DiasWonderful Copenhagen
 
Multithreaded programming
Multithreaded programmingMultithreaded programming
Multithreaded programmingSonam Sharma
 
Insert a Page Number in the Running Head
Insert a Page Number in the Running HeadInsert a Page Number in the Running Head
Insert a Page Number in the Running HeadAmy Lynn Hess
 
Presentiaon task sheduling first come first serve FCFS
Presentiaon  task sheduling first come first serve FCFSPresentiaon  task sheduling first come first serve FCFS
Presentiaon task sheduling first come first serve FCFSAhmed Salah
 
4 character encoding-ascii
4 character encoding-ascii4 character encoding-ascii
4 character encoding-asciiirdginfo
 
Process' Virtual Address Space in GNU/Linux
Process' Virtual Address Space in GNU/LinuxProcess' Virtual Address Space in GNU/Linux
Process' Virtual Address Space in GNU/LinuxVarun Mahajan
 

Viewers also liked (20)

First-Come-First-Serve (FCFS)
First-Come-First-Serve (FCFS)First-Come-First-Serve (FCFS)
First-Come-First-Serve (FCFS)
 
Disk scheduling.49
Disk scheduling.49Disk scheduling.49
Disk scheduling.49
 
Index allocation 48 1
Index allocation 48 1Index allocation 48 1
Index allocation 48 1
 
Disk scheduling
Disk schedulingDisk scheduling
Disk scheduling
 
CPU Scheduling Algorithms
CPU Scheduling AlgorithmsCPU Scheduling Algorithms
CPU Scheduling Algorithms
 
Present Continuous
Present ContinuousPresent Continuous
Present Continuous
 
Web sockets in Java
Web sockets in JavaWeb sockets in Java
Web sockets in Java
 
Java sockets
Java socketsJava sockets
Java sockets
 
Open and online: connections, community and reality
Open and online: connections, community and reality Open and online: connections, community and reality
Open and online: connections, community and reality
 
Garbage Collection without Paging
Garbage Collection without PagingGarbage Collection without Paging
Garbage Collection without Paging
 
Copenhagen Open For Connections Dias
Copenhagen Open For Connections DiasCopenhagen Open For Connections Dias
Copenhagen Open For Connections Dias
 
Multithreaded programming
Multithreaded programmingMultithreaded programming
Multithreaded programming
 
Insert a Page Number in the Running Head
Insert a Page Number in the Running HeadInsert a Page Number in the Running Head
Insert a Page Number in the Running Head
 
Presentiaon task sheduling first come first serve FCFS
Presentiaon  task sheduling first come first serve FCFSPresentiaon  task sheduling first come first serve FCFS
Presentiaon task sheduling first come first serve FCFS
 
The Look Of Love
The Look Of LoveThe Look Of Love
The Look Of Love
 
4 character encoding-ascii
4 character encoding-ascii4 character encoding-ascii
4 character encoding-ascii
 
Contigious
ContigiousContigious
Contigious
 
Ascii codes
Ascii codesAscii codes
Ascii codes
 
Disk scheduling
Disk schedulingDisk scheduling
Disk scheduling
 
Process' Virtual Address Space in GNU/Linux
Process' Virtual Address Space in GNU/LinuxProcess' Virtual Address Space in GNU/Linux
Process' Virtual Address Space in GNU/Linux
 

More from myrajendra (20)

Fundamentals
FundamentalsFundamentals
Fundamentals
 
Data type
Data typeData type
Data type
 
Hibernate example1
Hibernate example1Hibernate example1
Hibernate example1
 
Jdbc workflow
Jdbc workflowJdbc workflow
Jdbc workflow
 
2 jdbc drivers
2 jdbc drivers2 jdbc drivers
2 jdbc drivers
 
3 jdbc api
3 jdbc api3 jdbc api
3 jdbc api
 
4 jdbc step1
4 jdbc step14 jdbc step1
4 jdbc step1
 
Dao example
Dao exampleDao example
Dao example
 
Sessionex1
Sessionex1Sessionex1
Sessionex1
 
Internal
InternalInternal
Internal
 
3. elements
3. elements3. elements
3. elements
 
2. attributes
2. attributes2. attributes
2. attributes
 
1 introduction to html
1 introduction to html1 introduction to html
1 introduction to html
 
Headings
HeadingsHeadings
Headings
 
Forms
FormsForms
Forms
 
Css
CssCss
Css
 
Views
ViewsViews
Views
 
Views
ViewsViews
Views
 
Views
ViewsViews
Views
 
Starting jdbc
Starting jdbcStarting jdbc
Starting jdbc
 

C scan scheduling 50 2