OS-IPC&Mem MGMT New
OS-IPC&Mem MGMT New
What is Directory?
On a computer, a directory is used to store, arrange, and
segregate files and folders.
There are several logical structures of a directory, these are
given below.
Single level directory
Two-level directory
Tree structure or hierarchical directory
Acyclic graph directory
General graph directory structure and Data Structure
Single level directory structure
Two level directory structure
Tree structured directory
Acyclic graph directory
If we want to access a file or directory from another file or
directory,the solution to this problem is presented by the
acyclic-graph directory. In this type of directory, we can
access a file or a subdirectory from multiple directories.
Hence files can be shared between directories.
It is designed in such a way that multiple directories point to
a particular directory or file with the help of links
A practical example of this is a doc file shared between
two users. If any of the users makes a change in the
file, the change is reflected for both the users.
General Graph directory
This is an extension to the acyclic-graph
directory. In the general-graph directory,
there can be a cycle inside a directory.
In the above image, we can see that a
cycle is formed in the user 2 directory.
Although it provides greater flexibility, it is
complex to implement this structure.
Thank you