SlideShare a Scribd company logo
1 of 27
Recap

In the last class, you have learnt:
• How directories are deleted in a tree structure
• Advantages and disadvantages of tree structure
• Acyclic graph Directory Structure
• Its features
• Implementing shared directories and files



                    http://raj-os.blogspot.in/      1
• HOME     PREVIOUS TOPIC NEXT
• PREVIOUS QUESTION PAPERS FOR
  OS
• CPP TUTORIALS




            http://raj-os.blogspot.in/   2
Objectives

  On completion of this period, you would be able to

• Understand issues regarding deletion of files in an
  acyclic-graph structure

• List advantages and disadvantages of acyclic-graph
  structure

• Understand the structure of General Graph
  Directories and problems
                    http://raj-os.blogspot.in/      3
Issues In Acyclic Graph Directories

• A file may have multiple path names
• Consequently distinct file names may refer to the same
  file
• When traversing the entire file system we may come
  across shared structures more than once
         Ex: when we copy all files to backup storage same
  file may get copied more than once


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


• Another issue is deletion of shared files

• When can the space allocated to a shared file

  be de allocated and reused ?

• Two approaches may be used




                   http://raj-os.blogspot.in/     5
Approach 1


• Remove the file whenever anyone deletes the

  shared file




                  http://raj-os.blogspot.in/    6
Problems with Approach 1

• Problem is dangling pointers which point to the now-
  nonexistent file
• Also, If the file pointers contain actual disk
  addresses
• If the space is subsequently reused for other files,

• These dangling pointers may point into the middle of
  other files
                       http://raj-os.blogspot.in/        7
How to handle problems with Approach 1?

• Easy to handle if sharing is implemented by

  symbolic links

• If anyone deletes a shared file delete only the link

• Deletion of a link does not affect the original file

• If file entry itself is deleted, then space is de

  allocated, leaving the links dangling

                      http://raj-os.blogspot.in/         8
How to handle problems with Approach 1?

• We can search for dangling links and remove them

• The search can be expensive unless a list of the
  associated links is kept with each file
• Alternatively, we can leave the links until an attempt
  is made to use them
• At that time, we can determine the file name given
  by the symbolic link does not exist and can fail to
  resolve the link name
                     http://raj-os.blogspot.in/         9
How to handle problems with Approach 1?


In Unix

• Symbolic links are left when file is deleted

• It is up to the user to realize that the original file

  is gone or has been replaced with a new file

  having the same name


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

• Preserve the file until all references to it are
  deleted
• To implement this approach, we need a
  mechanism to determine that the last reference
  is deleted
• A list of all references to a file can be kept

                     http://raj-os.blogspot.in/      11
Approach 2

• When a link or a directory entry is established, a
  new entry is added to the file-reference list
• When a link or directory entry is deleted, we
  remove its entry on the list
• The file is deleted when its file-reference list is
  empty

                     http://raj-os.blogspot.in/         12
Problems with Approach 2


• Variable and potentially large size of the file-

  reference list




                     http://raj-os.blogspot.in/      13
How to handle problems with
                Approach 2?

• We need not keep the entire list

• Keep only a count of number of references

• A new link or directory entry increments the
  reference count
• Deleting a link or entry decrements the count

• When count is zero, the file is physically deleted

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

In this class, you have learnt:
• Various issues regarding acyclic graph directories
  like deletion
• Different ways to handle deletion
• Advantages and disadvantages of acyclic graph
  directories
• General graph directories and their disadvantages
                     http://raj-os.blogspot.in/   15
Frequently Asked Questions


1.   Explain how deletion is handled in acyclic

graph directories

2.   List the advantages and disadvantages of

acyclic graph directories

3.   Explain general graph directories



                     http://raj-os.blogspot.in/   16
1.     Pick the correct statement about acyclic graph
       directories


     a) Does not allow shared files

     b) Easy to handle deletion

     c) Allows shared files

     d) None of the above




                       http://raj-os.blogspot.in/       17
2. An acyclic graph can contain


   a) No cycles

   b) Only one cycle

   c) Two cycles

   d) Any number of cycles




                       http://raj-os.blogspot.in/   18
3.      In an acyclic graph directory, a             shared file can
        have

     a) Multiple relative path names

     b) Multiple absolute path names

     c) Both of the above

     d) None of the above




                        http://raj-os.blogspot.in/                     19
4. A dangling pointer points to

   a) a valid address

   b) an invalid address

   c) Sometimes a valid address and sometimes an

       invalid address

   d) None of the above




                         http://raj-os.blogspot.in/   20
State true or false

A link is a pointer to a file or subdirectory

                                              True




                 http://raj-os.blogspot.in/          21
State true or false

It is very easy to perform deletion in acyclic graph
      directories

                                                 False




                    http://raj-os.blogspot.in/           22
State true or false

Dangling pointers are desirable
                         False




                    http://raj-os.blogspot.in/   23
State true or false

A zero count in a file-reference list indicates that the file
is physically removed from the system
                                                 True




                      http://raj-os.blogspot.in/                24
State true or false

A general graph directory does not allow cycles
                                       False




                    http://raj-os.blogspot.in/    25
State true or false

In a general graph directory certain operations may lead
to infinite looping
                                        True




                    http://raj-os.blogspot.in/         26
Other subject materials

•   Web designing
•   Micro processors
•   C++ tutorials
•   java

home


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

More Related Content

What's hot

Distributed database management system
Distributed database management  systemDistributed database management  system
Distributed database management systemPooja Dixit
 
PARALLELISM IN MULTICORE PROCESSORS
PARALLELISM  IN MULTICORE PROCESSORSPARALLELISM  IN MULTICORE PROCESSORS
PARALLELISM IN MULTICORE PROCESSORSAmirthavalli Senthil
 
Client server architecture
Client server architectureClient server architecture
Client server architectureBhargav Amin
 
Dbms schema & instance
Dbms schema & instanceDbms schema & instance
Dbms schema & instancePapan Sarkar
 
Multithreading
MultithreadingMultithreading
MultithreadingA B Shinde
 
3 Level Architecture
3 Level Architecture3 Level Architecture
3 Level ArchitectureAdeel Rasheed
 
Object oriented methodologies
Object oriented methodologiesObject oriented methodologies
Object oriented methodologiesnaina-rani
 
Client server architecture
Client server architectureClient server architecture
Client server architectureRituBhargava7
 
Object Oriented Modeling and Design with UML
Object Oriented Modeling and Design with UMLObject Oriented Modeling and Design with UML
Object Oriented Modeling and Design with UMLMalek Sumaiya
 
file system in operating system
file system in operating systemfile system in operating system
file system in operating systemtittuajay
 
17. Recovery System in DBMS
17. Recovery System in DBMS17. Recovery System in DBMS
17. Recovery System in DBMSkoolkampus
 
03 backup-and-recovery
03 backup-and-recovery03 backup-and-recovery
03 backup-and-recoveryhunny garg
 
Free space managment46
Free space managment46Free space managment46
Free space managment46myrajendra
 

What's hot (20)

Distributed database management system
Distributed database management  systemDistributed database management  system
Distributed database management system
 
MFC Message Handling
MFC Message HandlingMFC Message Handling
MFC Message Handling
 
PARALLELISM IN MULTICORE PROCESSORS
PARALLELISM  IN MULTICORE PROCESSORSPARALLELISM  IN MULTICORE PROCESSORS
PARALLELISM IN MULTICORE PROCESSORS
 
Computer Science-Data Structures :Abstract DataType (ADT)
Computer Science-Data Structures :Abstract DataType (ADT)Computer Science-Data Structures :Abstract DataType (ADT)
Computer Science-Data Structures :Abstract DataType (ADT)
 
Client server architecture
Client server architectureClient server architecture
Client server architecture
 
Dbms schema & instance
Dbms schema & instanceDbms schema & instance
Dbms schema & instance
 
Multithreading
MultithreadingMultithreading
Multithreading
 
3 Level Architecture
3 Level Architecture3 Level Architecture
3 Level Architecture
 
Acid properties
Acid propertiesAcid properties
Acid properties
 
Crash recovery in database
Crash recovery in databaseCrash recovery in database
Crash recovery in database
 
File organisation
File organisationFile organisation
File organisation
 
Parallel processing
Parallel processingParallel processing
Parallel processing
 
Object oriented methodologies
Object oriented methodologiesObject oriented methodologies
Object oriented methodologies
 
Client server architecture
Client server architectureClient server architecture
Client server architecture
 
File system structure
File system structureFile system structure
File system structure
 
Object Oriented Modeling and Design with UML
Object Oriented Modeling and Design with UMLObject Oriented Modeling and Design with UML
Object Oriented Modeling and Design with UML
 
file system in operating system
file system in operating systemfile system in operating system
file system in operating system
 
17. Recovery System in DBMS
17. Recovery System in DBMS17. Recovery System in DBMS
17. Recovery System in DBMS
 
03 backup-and-recovery
03 backup-and-recovery03 backup-and-recovery
03 backup-and-recovery
 
Free space managment46
Free space managment46Free space managment46
Free space managment46
 

Viewers also liked

Acyclic grapch directory 56(2)
Acyclic grapch directory 56(2)Acyclic grapch directory 56(2)
Acyclic grapch directory 56(2)myrajendra
 
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
 
Chapter 10 - File System Interface
Chapter 10 - File System InterfaceChapter 10 - File System Interface
Chapter 10 - File System InterfaceWayne Jones Jnr
 
31 address binding, dynamic loading
31 address binding, dynamic loading31 address binding, dynamic loading
31 address binding, dynamic loadingmyrajendra
 
Deleting structure.56
Deleting structure.56Deleting structure.56
Deleting structure.56myrajendra
 
Set model and page fault.44
Set model and page fault.44Set model and page fault.44
Set model and page fault.44myrajendra
 
File Directory Structure-R.D.Sivakumar
File Directory Structure-R.D.SivakumarFile Directory Structure-R.D.Sivakumar
File Directory Structure-R.D.SivakumarSivakumar R D .
 
Files concepts.53
Files concepts.53Files concepts.53
Files concepts.53myrajendra
 
File directory definition 54(2)
File directory definition 54(2)File directory definition 54(2)
File directory definition 54(2)myrajendra
 
Disk scheduling.49
Disk scheduling.49Disk scheduling.49
Disk scheduling.49myrajendra
 
Operations on a directory 54(3
Operations on a directory 54(3Operations on a directory 54(3
Operations on a directory 54(3myrajendra
 
38 paged segmentation
38 paged segmentation38 paged segmentation
38 paged segmentationmyrajendra
 
File management53(1)
File management53(1)File management53(1)
File management53(1)myrajendra
 
41 page replacement fifo
41 page replacement fifo41 page replacement fifo
41 page replacement fifomyrajendra
 
34 single partition allocation
34 single partition allocation34 single partition allocation
34 single partition allocationmyrajendra
 
35. multiplepartitionallocation
35. multiplepartitionallocation35. multiplepartitionallocation
35. multiplepartitionallocationmyrajendra
 
42 lru optimal
42 lru optimal42 lru optimal
42 lru optimalmyrajendra
 

Viewers also liked (20)

Acyclic grapch directory 56(2)
Acyclic grapch directory 56(2)Acyclic grapch directory 56(2)
Acyclic grapch directory 56(2)
 
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)
 
Chapter 10 - File System Interface
Chapter 10 - File System InterfaceChapter 10 - File System Interface
Chapter 10 - File System Interface
 
File system
File systemFile system
File system
 
File system
File systemFile system
File system
 
31 address binding, dynamic loading
31 address binding, dynamic loading31 address binding, dynamic loading
31 address binding, dynamic loading
 
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
 
Files concepts.53
Files concepts.53Files concepts.53
Files concepts.53
 
File directory definition 54(2)
File directory definition 54(2)File directory definition 54(2)
File directory definition 54(2)
 
Disk scheduling.49
Disk scheduling.49Disk scheduling.49
Disk scheduling.49
 
Operations on a directory 54(3
Operations on a directory 54(3Operations on a directory 54(3
Operations on a directory 54(3
 
33
3333
33
 
38 paged segmentation
38 paged segmentation38 paged segmentation
38 paged segmentation
 
File management53(1)
File management53(1)File management53(1)
File management53(1)
 
41 page replacement fifo
41 page replacement fifo41 page replacement fifo
41 page replacement fifo
 
34 single partition allocation
34 single partition allocation34 single partition allocation
34 single partition allocation
 
35. multiplepartitionallocation
35. multiplepartitionallocation35. multiplepartitionallocation
35. multiplepartitionallocation
 
42 lru optimal
42 lru optimal42 lru optimal
42 lru optimal
 

Similar to 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)myrajendra
 
File protection.59 to 60
File protection.59 to 60File protection.59 to 60
File protection.59 to 60myrajendra
 
Drupal in Libraries
Drupal in LibrariesDrupal in Libraries
Drupal in LibrariesCary Gordon
 
The architecture of oak
The architecture of oakThe architecture of oak
The architecture of oakMichael Dürig
 
Operating System Practice : Meeting 4 - operasi file dan struktur direktori-s...
Operating System Practice : Meeting 4 - operasi file dan struktur direktori-s...Operating System Practice : Meeting 4 - operasi file dan struktur direktori-s...
Operating System Practice : Meeting 4 - operasi file dan struktur direktori-s...Syaiful Ahdan
 
Single level directory structure.55
Single level directory structure.55Single level directory structure.55
Single level directory structure.55myrajendra
 
Oak, the architecture of Apache Jackrabbit 3
Oak, the architecture of Apache Jackrabbit 3Oak, the architecture of Apache Jackrabbit 3
Oak, the architecture of Apache Jackrabbit 3Jukka Zitting
 
CivicActions Drupal Directory Structure
CivicActions Drupal Directory StructureCivicActions Drupal Directory Structure
CivicActions Drupal Directory StructureGregory Heller
 
Axe-matchers gem for automated accessibility testing
Axe-matchers gem for automated accessibility testing Axe-matchers gem for automated accessibility testing
Axe-matchers gem for automated accessibility testing Charlie Morris
 
Fringe Accessibility: A11y Camp Toronto 2015
Fringe Accessibility: A11y Camp Toronto 2015Fringe Accessibility: A11y Camp Toronto 2015
Fringe Accessibility: A11y Camp Toronto 2015Adrian Roselli
 
Directory Structure Changes in Laravel 5.3
Directory Structure Changes in Laravel 5.3Directory Structure Changes in Laravel 5.3
Directory Structure Changes in Laravel 5.3DHRUV NATH
 
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 | anyninesanynines GmbH
 
Plain english guide to drupal 8 criticals
Plain english guide to drupal 8 criticalsPlain english guide to drupal 8 criticals
Plain english guide to drupal 8 criticalsAngela Byron
 
CSE 390 Lecture 9 - Version Control with GIT
CSE 390 Lecture 9 - Version Control with GITCSE 390 Lecture 9 - Version Control with GIT
CSE 390 Lecture 9 - Version Control with GITPouriaQashqai1
 
The Ultimate Debian Database
The Ultimate Debian DatabaseThe Ultimate Debian Database
The Ultimate Debian DatabaseIsrael Herraiz
 
Allocation methods continuous method.47
Allocation methods continuous method.47 Allocation methods continuous method.47
Allocation methods continuous method.47 myrajendra
 
Thesis Defense: Building a Semantic Web of Comic Book Metadata
Thesis Defense: Building a Semantic Web of Comic Book MetadataThesis Defense: Building a Semantic Web of Comic Book Metadata
Thesis Defense: Building a Semantic Web of Comic Book MetadataSean Petiya
 

Similar to Issues in acyclic graph directories.57 to 58 (20)

Double level directory structure 55(1)
Double level directory structure 55(1)Double level directory structure 55(1)
Double level directory structure 55(1)
 
File protection.59 to 60
File protection.59 to 60File protection.59 to 60
File protection.59 to 60
 
Drupal in Libraries
Drupal in LibrariesDrupal in Libraries
Drupal in Libraries
 
The architecture of oak
The architecture of oakThe architecture of oak
The architecture of oak
 
Operating System Practice : Meeting 4 - operasi file dan struktur direktori-s...
Operating System Practice : Meeting 4 - operasi file dan struktur direktori-s...Operating System Practice : Meeting 4 - operasi file dan struktur direktori-s...
Operating System Practice : Meeting 4 - operasi file dan struktur direktori-s...
 
Single level directory structure.55
Single level directory structure.55Single level directory structure.55
Single level directory structure.55
 
Oak, the architecture of Apache Jackrabbit 3
Oak, the architecture of Apache Jackrabbit 3Oak, the architecture of Apache Jackrabbit 3
Oak, the architecture of Apache Jackrabbit 3
 
CivicActions Drupal Directory Structure
CivicActions Drupal Directory StructureCivicActions Drupal Directory Structure
CivicActions Drupal Directory Structure
 
Axe-matchers gem for automated accessibility testing
Axe-matchers gem for automated accessibility testing Axe-matchers gem for automated accessibility testing
Axe-matchers gem for automated accessibility testing
 
Fringe Accessibility: A11y Camp Toronto 2015
Fringe Accessibility: A11y Camp Toronto 2015Fringe Accessibility: A11y Camp Toronto 2015
Fringe Accessibility: A11y Camp Toronto 2015
 
Directory Structure Changes in Laravel 5.3
Directory Structure Changes in Laravel 5.3Directory Structure Changes in Laravel 5.3
Directory Structure Changes in Laravel 5.3
 
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
 
Plain english guide to drupal 8 criticals
Plain english guide to drupal 8 criticalsPlain english guide to drupal 8 criticals
Plain english guide to drupal 8 criticals
 
Publishing Linked Data from RDB
Publishing Linked Data from RDBPublishing Linked Data from RDB
Publishing Linked Data from RDB
 
遅延レイヤ取得による高互換コンテナ起動高速化手法
遅延レイヤ取得による高互換コンテナ起動高速化手法遅延レイヤ取得による高互換コンテナ起動高速化手法
遅延レイヤ取得による高互換コンテナ起動高速化手法
 
CSE 390 Lecture 9 - Version Control with GIT
CSE 390 Lecture 9 - Version Control with GITCSE 390 Lecture 9 - Version Control with GIT
CSE 390 Lecture 9 - Version Control with GIT
 
The Ultimate Debian Database
The Ultimate Debian DatabaseThe Ultimate Debian Database
The Ultimate Debian Database
 
Allocation methods continuous method.47
Allocation methods continuous method.47 Allocation methods continuous method.47
Allocation methods continuous method.47
 
File System operating system operating system
File System  operating system operating systemFile System  operating system operating system
File System operating system operating system
 
Thesis Defense: Building a Semantic Web of Comic Book Metadata
Thesis Defense: Building a Semantic Web of Comic Book MetadataThesis Defense: Building a Semantic Web of Comic Book Metadata
Thesis Defense: Building a Semantic Web of Comic Book Metadata
 

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
 

Issues in acyclic graph directories.57 to 58

  • 1. Recap In the last class, you have learnt: • How directories are deleted in a tree structure • Advantages and disadvantages of tree structure • Acyclic graph Directory Structure • Its features • Implementing shared directories and files http://raj-os.blogspot.in/ 1
  • 2. • HOME PREVIOUS TOPIC NEXT • PREVIOUS QUESTION PAPERS FOR OS • CPP TUTORIALS http://raj-os.blogspot.in/ 2
  • 3. Objectives On completion of this period, you would be able to • Understand issues regarding deletion of files in an acyclic-graph structure • List advantages and disadvantages of acyclic-graph structure • Understand the structure of General Graph Directories and problems http://raj-os.blogspot.in/ 3
  • 4. Issues In Acyclic Graph Directories • A file may have multiple path names • Consequently distinct file names may refer to the same file • When traversing the entire file system we may come across shared structures more than once Ex: when we copy all files to backup storage same file may get copied more than once http://raj-os.blogspot.in/ 4
  • 5. Issues In Acyclic Graph Directories • Another issue is deletion of shared files • When can the space allocated to a shared file be de allocated and reused ? • Two approaches may be used http://raj-os.blogspot.in/ 5
  • 6. Approach 1 • Remove the file whenever anyone deletes the shared file http://raj-os.blogspot.in/ 6
  • 7. Problems with Approach 1 • Problem is dangling pointers which point to the now- nonexistent file • Also, If the file pointers contain actual disk addresses • If the space is subsequently reused for other files, • These dangling pointers may point into the middle of other files http://raj-os.blogspot.in/ 7
  • 8. How to handle problems with Approach 1? • Easy to handle if sharing is implemented by symbolic links • If anyone deletes a shared file delete only the link • Deletion of a link does not affect the original file • If file entry itself is deleted, then space is de allocated, leaving the links dangling http://raj-os.blogspot.in/ 8
  • 9. How to handle problems with Approach 1? • We can search for dangling links and remove them • The search can be expensive unless a list of the associated links is kept with each file • Alternatively, we can leave the links until an attempt is made to use them • At that time, we can determine the file name given by the symbolic link does not exist and can fail to resolve the link name http://raj-os.blogspot.in/ 9
  • 10. How to handle problems with Approach 1? In Unix • Symbolic links are left when file is deleted • It is up to the user to realize that the original file is gone or has been replaced with a new file having the same name http://raj-os.blogspot.in/ 10
  • 11. Approach 2 • Preserve the file until all references to it are deleted • To implement this approach, we need a mechanism to determine that the last reference is deleted • A list of all references to a file can be kept http://raj-os.blogspot.in/ 11
  • 12. Approach 2 • When a link or a directory entry is established, a new entry is added to the file-reference list • When a link or directory entry is deleted, we remove its entry on the list • The file is deleted when its file-reference list is empty http://raj-os.blogspot.in/ 12
  • 13. Problems with Approach 2 • Variable and potentially large size of the file- reference list http://raj-os.blogspot.in/ 13
  • 14. How to handle problems with Approach 2? • We need not keep the entire list • Keep only a count of number of references • A new link or directory entry increments the reference count • Deleting a link or entry decrements the count • When count is zero, the file is physically deleted http://raj-os.blogspot.in/ 14
  • 15. Summary In this class, you have learnt: • Various issues regarding acyclic graph directories like deletion • Different ways to handle deletion • Advantages and disadvantages of acyclic graph directories • General graph directories and their disadvantages http://raj-os.blogspot.in/ 15
  • 16. Frequently Asked Questions 1. Explain how deletion is handled in acyclic graph directories 2. List the advantages and disadvantages of acyclic graph directories 3. Explain general graph directories http://raj-os.blogspot.in/ 16
  • 17. 1. Pick the correct statement about acyclic graph directories a) Does not allow shared files b) Easy to handle deletion c) Allows shared files d) None of the above http://raj-os.blogspot.in/ 17
  • 18. 2. An acyclic graph can contain a) No cycles b) Only one cycle c) Two cycles d) Any number of cycles http://raj-os.blogspot.in/ 18
  • 19. 3. In an acyclic graph directory, a shared file can have a) Multiple relative path names b) Multiple absolute path names c) Both of the above d) None of the above http://raj-os.blogspot.in/ 19
  • 20. 4. A dangling pointer points to a) a valid address b) an invalid address c) Sometimes a valid address and sometimes an invalid address d) None of the above http://raj-os.blogspot.in/ 20
  • 21. State true or false A link is a pointer to a file or subdirectory True http://raj-os.blogspot.in/ 21
  • 22. State true or false It is very easy to perform deletion in acyclic graph directories False http://raj-os.blogspot.in/ 22
  • 23. State true or false Dangling pointers are desirable False http://raj-os.blogspot.in/ 23
  • 24. State true or false A zero count in a file-reference list indicates that the file is physically removed from the system True http://raj-os.blogspot.in/ 24
  • 25. State true or false A general graph directory does not allow cycles False http://raj-os.blogspot.in/ 25
  • 26. State true or false In a general graph directory certain operations may lead to infinite looping True http://raj-os.blogspot.in/ 26
  • 27. Other subject materials • Web designing • Micro processors • C++ tutorials • java home http://raj-os.blogspot.in/ 27