SlideShare uma empresa Scribd logo
1 de 8
Linked Allocation
•   Also known as chained allocation

• Each block contains pointer to next link in the

    chain

• Reallocation is possible, it is more common to

    allocate blocks as needed


                                                    1
                    http://raj-os.blogspot.in/      1
Linked Allocation


• Each file is stored as a linked list of disk blocks
   – the disk blocks may be anywhere on the disk

• Any free block can be added to a chain




                                                        2
                       http://raj-os.blogspot.in/       2
Linked Allocation


• Simple – need only starting address
• Free-space management system – no waste of
  space
• No random access
• No external fragmentation




                                              3
                 http://raj-os.blogspot.in/   3
Linked Allocation

• To select an individual block of a file requires

  tracing through the chain to the desired block

• The file allocation table needs a single entry for each

  file showing starting block and length of the file




                                                        4
                       http://raj-os.blogspot.in/       4
Linked Allocation




   http://raj-os.blogspot.in/   5
Linked Allocation Advantages

• It is simple

• Solves the problems with contiguous allocation
   – the space allocation problem


• No disk compaction is required
  -because of non contiguous nature of allocation, the linking
  does not produce any external fragmentation


                                                                 6
                        http://raj-os.blogspot.in/               6
Linked Allocation Disadvantages

• Slow
     to find out nth block of a file we must start at the
  beginning of that file space requirements for pointers


• Not reliable
     disk blocks are linked by pointers, a single damaged
  pointer can make thousands of disk blocks inaccessible




                                                            7
                         http://raj-os.blogspot.in/         7
Linked Allocation Disadvantages

• Slow
     to find out nth block of a file we must start at the
  beginning of that file space requirements for pointers


• Not reliable
     disk blocks are linked by pointers, a single damaged
  pointer can make thousands of disk blocks inaccessible




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

Mais conteúdo relacionado

Mais procurados

Memory management early_systems
Memory management early_systemsMemory management early_systems
Memory management early_systems
Mybej Che
 
15. Transactions in DBMS
15. Transactions in DBMS15. Transactions in DBMS
15. Transactions in DBMS
koolkampus
 
11. transaction sql
11. transaction sql11. transaction sql
11. transaction sql
Umang Gupta
 
Dynamic storage allocation techniques
Dynamic storage allocation techniquesDynamic storage allocation techniques
Dynamic storage allocation techniques
Shashwat Shriparv
 
File access methods.54
File access methods.54File access methods.54
File access methods.54
myrajendra
 

Mais procurados (20)

Memory Management in OS
Memory Management in OSMemory Management in OS
Memory Management in OS
 
File organization 1
File organization 1File organization 1
File organization 1
 
OS file systems
OS file systemsOS file systems
OS file systems
 
Disk management
Disk managementDisk management
Disk management
 
System calls
System callsSystem calls
System calls
 
Ch11 file system implementation
Ch11 file system implementationCh11 file system implementation
Ch11 file system implementation
 
Chapter 11 - File System Implementation
Chapter 11 - File System ImplementationChapter 11 - File System Implementation
Chapter 11 - File System Implementation
 
Memory management ppt
Memory management pptMemory management ppt
Memory management ppt
 
Memory Management in OS
Memory Management in OSMemory Management in OS
Memory Management in OS
 
Memory management early_systems
Memory management early_systemsMemory management early_systems
Memory management early_systems
 
15. Transactions in DBMS
15. Transactions in DBMS15. Transactions in DBMS
15. Transactions in DBMS
 
11. transaction sql
11. transaction sql11. transaction sql
11. transaction sql
 
Dbms ii mca-ch11-recovery-2013
Dbms ii mca-ch11-recovery-2013Dbms ii mca-ch11-recovery-2013
Dbms ii mca-ch11-recovery-2013
 
Distributed file system
Distributed file systemDistributed file system
Distributed file system
 
File system Os
File system OsFile system Os
File system Os
 
Disk structure
Disk structureDisk structure
Disk structure
 
Java package
Java packageJava package
Java package
 
Dynamic storage allocation techniques
Dynamic storage allocation techniquesDynamic storage allocation techniques
Dynamic storage allocation techniques
 
File access methods.54
File access methods.54File access methods.54
File access methods.54
 
Memory management
Memory managementMemory management
Memory management
 

Destaque

Index allocation 48 1
Index allocation 48 1Index allocation 48 1
Index allocation 48 1
myrajendra
 
Secondary storage management in os
Secondary storage management in osSecondary storage management in os
Secondary storage management in os
Sumant Diwakar
 

Destaque (7)

Index allocation 48 1
Index allocation 48 1Index allocation 48 1
Index allocation 48 1
 
Operation System
Operation SystemOperation System
Operation System
 
File System and File allocation tables
File System and File allocation tablesFile System and File allocation tables
File System and File allocation tables
 
Secondary storage management in os
Secondary storage management in osSecondary storage management in os
Secondary storage management in os
 
ITFT_File system interface in Operating System
ITFT_File system interface in Operating SystemITFT_File system interface in Operating System
ITFT_File system interface in Operating System
 
Paging and segmentation
Paging and segmentationPaging and segmentation
Paging and segmentation
 
Os Swapping, Paging, Segmentation and Virtual Memory
Os Swapping, Paging, Segmentation and Virtual MemoryOs Swapping, Paging, Segmentation and Virtual Memory
Os Swapping, Paging, Segmentation and Virtual Memory
 

Semelhante a Linked allocation 48

Acyclic grapch directory 56(2)
Acyclic grapch directory 56(2)Acyclic grapch directory 56(2)
Acyclic grapch directory 56(2)
myrajendra
 
AOS Lab 9: File system -- Of buffers, logs, and blocks
AOS Lab 9: File system -- Of buffers, logs, and blocksAOS Lab 9: File system -- Of buffers, logs, and blocks
AOS Lab 9: File system -- Of buffers, logs, and blocks
Zubair Nabi
 
Merge2013 mwarren-presentation1.pptx(pv6)
Merge2013 mwarren-presentation1.pptx(pv6)Merge2013 mwarren-presentation1.pptx(pv6)
Merge2013 mwarren-presentation1.pptx(pv6)
Mark Warren
 
Free space managment46
Free space managment46Free space managment46
Free space managment46
myrajendra
 

Semelhante a Linked allocation 48 (20)

Lect09
Lect09Lect09
Lect09
 
File Allocation Methods.ppt
File Allocation Methods.pptFile Allocation Methods.ppt
File Allocation Methods.ppt
 
Acyclic grapch directory 56(2)
Acyclic grapch directory 56(2)Acyclic grapch directory 56(2)
Acyclic grapch directory 56(2)
 
AOS Lab 9: File system -- Of buffers, logs, and blocks
AOS Lab 9: File system -- Of buffers, logs, and blocksAOS Lab 9: File system -- Of buffers, logs, and blocks
AOS Lab 9: File system -- Of buffers, logs, and blocks
 
Disk allocation methods
Disk allocation methodsDisk allocation methods
Disk allocation methods
 
Merge2013 mwarren-presentation1.pptx(pv6)
Merge2013 mwarren-presentation1.pptx(pv6)Merge2013 mwarren-presentation1.pptx(pv6)
Merge2013 mwarren-presentation1.pptx(pv6)
 
A fast file system for unix presentation by parang saraf (cs5204 VT)
A fast file system for unix presentation by parang saraf (cs5204 VT)A fast file system for unix presentation by parang saraf (cs5204 VT)
A fast file system for unix presentation by parang saraf (cs5204 VT)
 
Free space managment46
Free space managment46Free space managment46
Free space managment46
 
Kernel Memory Allocation, Review of Relocation & Program Forms
Kernel Memory Allocation, Review of Relocation & Program FormsKernel Memory Allocation, Review of Relocation & Program Forms
Kernel Memory Allocation, Review of Relocation & Program Forms
 
Bin carver
Bin carverBin carver
Bin carver
 
File system in operating system e learning
File system in operating system e learningFile system in operating system e learning
File system in operating system e learning
 
Cachememory
CachememoryCachememory
Cachememory
 
Course 102: Lecture 5: File Handling Internals
Course 102: Lecture 5: File Handling Internals Course 102: Lecture 5: File Handling Internals
Course 102: Lecture 5: File Handling Internals
 
RAID.ppt
RAID.pptRAID.ppt
RAID.ppt
 
Allocation and free space management
Allocation and free space managementAllocation and free space management
Allocation and free space management
 
10. ROS (1).pptx
10. ROS (1).pptx10. ROS (1).pptx
10. ROS (1).pptx
 
File System.pptx
File System.pptxFile System.pptx
File System.pptx
 
Directory implementation and allocation methods
Directory implementation and allocation methodsDirectory implementation and allocation methods
Directory implementation and allocation methods
 
Chapter 3
Chapter 3Chapter 3
Chapter 3
 
Consistency Without Ordering
Consistency Without OrderingConsistency Without Ordering
Consistency Without Ordering
 

Mais de 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
 

Linked allocation 48

  • 1. Linked Allocation • Also known as chained allocation • Each block contains pointer to next link in the chain • Reallocation is possible, it is more common to allocate blocks as needed 1 http://raj-os.blogspot.in/ 1
  • 2. Linked Allocation • Each file is stored as a linked list of disk blocks – the disk blocks may be anywhere on the disk • Any free block can be added to a chain 2 http://raj-os.blogspot.in/ 2
  • 3. Linked Allocation • Simple – need only starting address • Free-space management system – no waste of space • No random access • No external fragmentation 3 http://raj-os.blogspot.in/ 3
  • 4. Linked Allocation • To select an individual block of a file requires tracing through the chain to the desired block • The file allocation table needs a single entry for each file showing starting block and length of the file 4 http://raj-os.blogspot.in/ 4
  • 5. Linked Allocation http://raj-os.blogspot.in/ 5
  • 6. Linked Allocation Advantages • It is simple • Solves the problems with contiguous allocation – the space allocation problem • No disk compaction is required -because of non contiguous nature of allocation, the linking does not produce any external fragmentation 6 http://raj-os.blogspot.in/ 6
  • 7. Linked Allocation Disadvantages • Slow to find out nth block of a file we must start at the beginning of that file space requirements for pointers • Not reliable disk blocks are linked by pointers, a single damaged pointer can make thousands of disk blocks inaccessible 7 http://raj-os.blogspot.in/ 7
  • 8. Linked Allocation Disadvantages • Slow to find out nth block of a file we must start at the beginning of that file space requirements for pointers • Not reliable disk blocks are linked by pointers, a single damaged pointer can make thousands of disk blocks inaccessible 8 http://raj-os.blogspot.in/ 8