SlideShare a Scribd company logo
1 of 10
ACYCLIC-GRAPH DIRECTORIES




           http://raj-os.blogspot.in/   1
Acyclic-Graph Directories
                        Features
• Use a graph structure without any cycles
   – A shared file or subdirectory can be created
   – Which can be used by two or more users
• The above feature is useful where a group of persons
  working for the same project need common
  information


                      http://raj-os.blogspot.in/     2
Acyclic-Graph Directories

Example

  Refer to fig. 1

  The file circled with red mark is a shared file

  It is contained in two subdirectories




                      http://raj-os.blogspot.in/    3
Fig. 1 Acyclic-Graph Directories




        http://raj-os.blogspot.in/   4
Acyclic-Graph Directories
Important

• A shared file or subdirectory will exist in the file
  system in two ( or more ) places at once

• A shared file (or subdirectory) is not the same as two
  copies of the file

• Difference is explained in next slide


                        http://raj-os.blogspot.in/         5
Difference Between Two Copies of the File and
                 Shared File
• With two copies
   – Each user views only the copy, not original
   – If a user changes the file, the changes will not
     appear in the other’s copy
• With a shared file
   – There is only one file
   – Any changes made by one user would be
      automatically available to other users

                       http://raj-os.blogspot.in/       6
Two methods of Implementing Shared Files and
               Subdirectories

1. Create a new directory entry called link

    Used by many UNIX systems

2. Duplicate all information about shared files in both
    sharing directories




                      http://raj-os.blogspot.in/          7
Method 1
• For a shared file the directory entry is marked as a
  link
• A link may be implemented as an absolute path
  name or relative path name ( a symbolic link )
• When a shared file is referenced , the link is resolved
• Links are identified by their special format or by their
  having a special type
• Operating system ignores the links when traversing
  the directory to preserve the acyclic structure


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

•   Maintain duplicate entries about the shared file in
    all the sharing directories
•   Duplicate entries make the original and copy
    indistinguishable
•   Major problem is maintaining consistency if file
    modified



                        http://raj-os.blogspot.in/        9
Summary

In this class, you have learnt
• Deletion of a directory from tree-structured
   directories
• Advantages and limitations of tree-structured
   directories
• Acyclic-graph directory and its features
• Implementation of shared files



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

More Related Content

What's hot

Git workflows
Git workflowsGit workflows
Git workflows
Xpand IT
 
Database Security, Threats & Countermeasures.pptx
Database Security, Threats & Countermeasures.pptxDatabase Security, Threats & Countermeasures.pptx
Database Security, Threats & Countermeasures.pptx
SaqibAhmedKhan4
 

What's hot (20)

Git workflows
Git workflowsGit workflows
Git workflows
 
Git and GitHub for Documentation
Git and GitHub for DocumentationGit and GitHub for Documentation
Git and GitHub for Documentation
 
Transactions in dbms
Transactions in dbmsTransactions in dbms
Transactions in dbms
 
Ipc
IpcIpc
Ipc
 
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
 
cpu scheduling.pdf
cpu scheduling.pdfcpu scheduling.pdf
cpu scheduling.pdf
 
Analyze Virtual Machine Overhead Compared to Bare Metal with Tracing
Analyze Virtual Machine Overhead Compared to Bare Metal with TracingAnalyze Virtual Machine Overhead Compared to Bare Metal with Tracing
Analyze Virtual Machine Overhead Compared to Bare Metal with Tracing
 
SHADOW PAGING and BUFFER MANAGEMENT
SHADOW PAGING and BUFFER MANAGEMENTSHADOW PAGING and BUFFER MANAGEMENT
SHADOW PAGING and BUFFER MANAGEMENT
 
InnoDB Internal
InnoDB InternalInnoDB Internal
InnoDB Internal
 
Multithreading
MultithreadingMultithreading
Multithreading
 
Kernel I/O subsystem
Kernel I/O subsystemKernel I/O subsystem
Kernel I/O subsystem
 
page replacement.pptx
page replacement.pptxpage replacement.pptx
page replacement.pptx
 
Page replacement algorithms
Page replacement algorithmsPage replacement algorithms
Page replacement algorithms
 
Concurrency control!
Concurrency control!Concurrency control!
Concurrency control!
 
Process threads operating system.
Process threads operating system.Process threads operating system.
Process threads operating system.
 
Operating system 33 swapping
Operating system 33 swappingOperating system 33 swapping
Operating system 33 swapping
 
Segmentation in Operating Systems.
Segmentation in Operating Systems.Segmentation in Operating Systems.
Segmentation in Operating Systems.
 
Database Security, Threats & Countermeasures.pptx
Database Security, Threats & Countermeasures.pptxDatabase Security, Threats & Countermeasures.pptx
Database Security, Threats & Countermeasures.pptx
 
Lock based protocols
Lock based protocolsLock based protocols
Lock based protocols
 
Shared memory
Shared memoryShared memory
Shared memory
 

Viewers also liked

Advantages of tree structured directories(56(1)
Advantages of tree structured directories(56(1)Advantages of tree structured directories(56(1)
Advantages of tree structured directories(56(1)
myrajendra
 
Issues in acyclic graph directories.57 to 58
Issues in acyclic graph directories.57 to 58Issues in acyclic graph directories.57 to 58
Issues in acyclic graph directories.57 to 58
myrajendra
 
Double level directory structure 55(1)
Double level directory structure 55(1)Double level directory structure 55(1)
Double level directory structure 55(1)
myrajendra
 
Single level directory structure.55
Single level directory structure.55Single level directory structure.55
Single level directory structure.55
myrajendra
 
File protection.59 to 60
File protection.59 to 60File protection.59 to 60
File protection.59 to 60
myrajendra
 
Linked allocation 48
Linked  allocation 48Linked  allocation 48
Linked allocation 48
myrajendra
 
Free space managment46
Free space managment46Free space managment46
Free space managment46
myrajendra
 
Index allocation 48 1
Index allocation 48 1Index allocation 48 1
Index allocation 48 1
myrajendra
 
File management ppt
File management pptFile management ppt
File management ppt
marotti
 
Deleting structure.56
Deleting structure.56Deleting structure.56
Deleting structure.56
myrajendra
 
Set model and page fault.44
Set model and page fault.44Set model and page fault.44
Set model and page fault.44
myrajendra
 
File directory definition 54(2)
File directory definition 54(2)File directory definition 54(2)
File directory definition 54(2)
myrajendra
 
Files concepts.53
Files concepts.53Files concepts.53
Files concepts.53
myrajendra
 
Operations on a directory 54(3
Operations on a directory 54(3Operations on a directory 54(3
Operations on a directory 54(3
myrajendra
 
Disk scheduling.49
Disk scheduling.49Disk scheduling.49
Disk scheduling.49
myrajendra
 

Viewers also liked (20)

Advantages of tree structured directories(56(1)
Advantages of tree structured directories(56(1)Advantages of tree structured directories(56(1)
Advantages of tree structured directories(56(1)
 
Issues in acyclic graph directories.57 to 58
Issues in acyclic graph directories.57 to 58Issues in acyclic graph directories.57 to 58
Issues in acyclic graph directories.57 to 58
 
Double level directory structure 55(1)
Double level directory structure 55(1)Double level directory structure 55(1)
Double level directory structure 55(1)
 
Single level directory structure.55
Single level directory structure.55Single level directory structure.55
Single level directory structure.55
 
File system
File systemFile system
File system
 
File protection.59 to 60
File protection.59 to 60File protection.59 to 60
File protection.59 to 60
 
Linked allocation 48
Linked  allocation 48Linked  allocation 48
Linked allocation 48
 
Free space managment46
Free space managment46Free space managment46
Free space managment46
 
Index allocation 48 1
Index allocation 48 1Index allocation 48 1
Index allocation 48 1
 
File management ppt
File management pptFile management ppt
File management ppt
 
What is active directory
What is active directoryWhat is active directory
What is active directory
 
OSCh11
OSCh11OSCh11
OSCh11
 
Deleting structure.56
Deleting structure.56Deleting structure.56
Deleting structure.56
 
Set model and page fault.44
Set model and page fault.44Set model and page fault.44
Set model and page fault.44
 
File Directory Structure-R.D.Sivakumar
File Directory Structure-R.D.SivakumarFile Directory Structure-R.D.Sivakumar
File Directory Structure-R.D.Sivakumar
 
File directory definition 54(2)
File directory definition 54(2)File directory definition 54(2)
File directory definition 54(2)
 
Files concepts.53
Files concepts.53Files concepts.53
Files concepts.53
 
Operations on a directory 54(3
Operations on a directory 54(3Operations on a directory 54(3
Operations on a directory 54(3
 
Disk scheduling.49
Disk scheduling.49Disk scheduling.49
Disk scheduling.49
 
33
3333
33
 

Similar to Acyclic grapch directory 56(2)

Similar to Acyclic grapch directory 56(2) (20)

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
 
File system
File systemFile system
File system
 
File System operating system operating system
File System  operating system operating systemFile System  operating system operating system
File System operating system operating system
 
File System.pptx
File System.pptxFile System.pptx
File System.pptx
 
Directory structure
Directory structureDirectory structure
Directory structure
 
Hands on kubernetes_container_orchestration
Hands on kubernetes_container_orchestrationHands on kubernetes_container_orchestration
Hands on kubernetes_container_orchestration
 
Folder structure & setup dev environment
Folder structure & setup dev environmentFolder structure & setup dev environment
Folder structure & setup dev environment
 
Os6
Os6Os6
Os6
 
UNIT7-FileMgmt.pptx
UNIT7-FileMgmt.pptxUNIT7-FileMgmt.pptx
UNIT7-FileMgmt.pptx
 
O svv92014
O svv92014O svv92014
O svv92014
 
Asp .net folders and web.config
Asp .net folders and web.configAsp .net folders and web.config
Asp .net folders and web.config
 
File Service Architecture
File Service ArchitectureFile Service Architecture
File Service Architecture
 
The architecture of oak
The architecture of oakThe architecture of oak
The architecture of oak
 
file management
file managementfile management
file management
 
File and directory
File and directoryFile and directory
File and directory
 
A Practical Approach to Managed Shared Drives
A Practical Approach to Managed Shared DrivesA Practical Approach to Managed Shared Drives
A Practical Approach to Managed Shared Drives
 
File Management
File ManagementFile Management
File Management
 
Cloud Infrastructures Slide Set 7 - Docker - Neo4j | anynines
Cloud Infrastructures Slide Set 7 - Docker - Neo4j | anyninesCloud Infrastructures Slide Set 7 - Docker - Neo4j | anynines
Cloud Infrastructures Slide Set 7 - Docker - Neo4j | anynines
 
12. dfs
12. dfs12. dfs
12. dfs
 
Asp .net folders and web.config
Asp .net folders and web.configAsp .net folders and web.config
Asp .net folders and web.config
 

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
 

Acyclic grapch directory 56(2)

  • 1. ACYCLIC-GRAPH DIRECTORIES http://raj-os.blogspot.in/ 1
  • 2. Acyclic-Graph Directories Features • Use a graph structure without any cycles – A shared file or subdirectory can be created – Which can be used by two or more users • The above feature is useful where a group of persons working for the same project need common information http://raj-os.blogspot.in/ 2
  • 3. Acyclic-Graph Directories Example Refer to fig. 1 The file circled with red mark is a shared file It is contained in two subdirectories http://raj-os.blogspot.in/ 3
  • 4. Fig. 1 Acyclic-Graph Directories http://raj-os.blogspot.in/ 4
  • 5. Acyclic-Graph Directories Important • A shared file or subdirectory will exist in the file system in two ( or more ) places at once • A shared file (or subdirectory) is not the same as two copies of the file • Difference is explained in next slide http://raj-os.blogspot.in/ 5
  • 6. Difference Between Two Copies of the File and Shared File • With two copies – Each user views only the copy, not original – If a user changes the file, the changes will not appear in the other’s copy • With a shared file – There is only one file – Any changes made by one user would be automatically available to other users http://raj-os.blogspot.in/ 6
  • 7. Two methods of Implementing Shared Files and Subdirectories 1. Create a new directory entry called link Used by many UNIX systems 2. Duplicate all information about shared files in both sharing directories http://raj-os.blogspot.in/ 7
  • 8. Method 1 • For a shared file the directory entry is marked as a link • A link may be implemented as an absolute path name or relative path name ( a symbolic link ) • When a shared file is referenced , the link is resolved • Links are identified by their special format or by their having a special type • Operating system ignores the links when traversing the directory to preserve the acyclic structure http://raj-os.blogspot.in/ 8
  • 9. Method 2 • Maintain duplicate entries about the shared file in all the sharing directories • Duplicate entries make the original and copy indistinguishable • Major problem is maintaining consistency if file modified http://raj-os.blogspot.in/ 9
  • 10. Summary In this class, you have learnt • Deletion of a directory from tree-structured directories • Advantages and limitations of tree-structured directories • Acyclic-graph directory and its features • Implementation of shared files http://raj-os.blogspot.in/ 10