Directory Structure | tree structured directory | acyclic graph directory | operating system | files

preview_player
Показать описание
#DirectoryStructure #filesystem #operatingsystemlectures
A directory is a container that is used to contain folders and file. It organizes files and folders into a hierarchical manner.
Single-level directory –
Single level directory is simplest directory structure.In it all files are contained in same directory which make it easy to support and understand.

A single level directory has a significant limitation, however, when the number of files increases or when the system has more than one user. Since all the files are in the same directory, they must have the unique name . if two users call their dataset test, then the unique name rule violated.
Advantages:

Since it is a single directory, so its implementation is very easy.
If files are smaller in size, searching will faster.
The operations like file creation, searching, deletion, updating are very easy in such a directory structure.

Disadvantages:

There may chance of name collision because two files can not have the same name.
Searching will become time taking if directory will large.
In this can not group the same type of files together.

Two-level directory –
As we have seen, a single level directory often leads to confusion of files names among different users. the solution to this problem is to create a separate directory for each user.

In the two-level directory structure, each user has there own user files directory (UFD). The UFDs has similar structures, but each lists only the files of a single user. system’s master file directory (MFD) is searches whenever a new user id=s logged in. The MFD is indexed by username or account number, and each entry points to the UFD for that user.
Advantages:

We can give full path like /User-name/directory-name/.
Different users can have same directory as well as file name.
Searching of files become more easy due to path name and user-grouping.

Disadvantages:

A user is not allowed to share files with other users.
Still it not very scalable, two files of the same type cannot be grouped together in the same user.

Tree-structured directory –
Once we have seen a two-level directory as a tree of height 2, the natural generalization is to extend the directory structure to a tree of arbitrary height.
This generalization allows the user to create there own subdirectories and to organize on their files accordingly.

A tree structure is the most common directory structure. The tree has a root directory, and every file in the system have a unique path.

Advantages:

Very generalize, since full path name can be given.
Very scalable, the probability of name collision is less.
Searching becomes very easy, we can use both absolute path as well as relative.

Disadvantages:

Every file does not fit into the hierarchical model, files may be saved into multiple directories.
We can not share files.
It is inefficient, because accessing a file may go under multiple directories.

Acyclic graph directory –
An acyclic graph is a graph with no cycle and allows to share subdirectories and files. The same file or subdirectories may be in two different directories. It is a natural generalization of the tree-structured directory.

It is used in the situation like when two programmers are working on a joint project and they need to access files. The associated files are stored in a subdirectory, separating them from other projects and files of other programmers, since they are working on a joint project so they want the subdirectories to be into their own directories. The common subdirectories should be shared. So here we use Acyclic directories.

It is the point to note that shared file is not the same as copy file . If any programmer makes some changes in the subdirectory it will reflect in both subdirectories.
Рекомендации по теме
Комментарии
Автор

Sir..your explanation is perfect ..besides this, I also noticed that you are responding for each n everyone...And that's great👏...Thank you so much sir for helping out many students through your classes🥰..

bhanuchandrikah
Автор

By seeing your classes I scored 90+ in computer organisation and tomarow i having operating system exam by seeing your classes i revise all classes done in college, thank you...

hpt
Автор

4 mins into the video and i already understand a lot of things compared to universities classes. tbh, Im at the verge of giving up this semester. you just restored my motivation to score in exam in two weeks. Thank you so much for the video. i really appreciate it

muhammadarifbinnorazhar
Автор

Sir your class is awesome
If a student don't know anything also can understand hats off to you sir

Smallkidsvideos
Автор

Thank you so much sir, every single time whenever I have CIA tests I used to watch once again your videos for revision sir, even no need to study line by line what ever you thought us is more than enough to cover both the page and knowledge. Thank you for your efforts sir, i really appreciate it 🙏.

kavii
Автор

Just a hour before i found ur video and see it
I clear all my doubt thanks 🙏

Cool_Shubham
Автор

Your Explanation is very clear sir thank youd so much for your this kind of effort for students

_umangkumar
Автор

Very good explanation sir and ur way of teaching is good.

sriharismart
Автор

one of the beautiful, and easy to understand explanations ❤

Xairs_
Автор

Awesome explaination sir👌👌👌👏👏 . My os exam is tomorrow and i am watching all ur videos and sharing with my friends.Just a small suggestion from my side sir- please explain in a board of bigger size sir.it is kinda difficult to grasp when everything is clustered.

animestuff
Автор

i have exam on Saturday and this video really saves my time :)

a.grishma
Автор

Tq u so much sir, I understand very easily ....all my doubts are cleared. Because of u this concept is in my hands..tq sir

vasanthabese
Автор

Thank you sir for your video this helped me to pass the exam grateful for you sir ❤

akeesh
Автор

Crystal clear explanation sir🙏 tq so much sir🙏🙏

ware_wolf___
Автор

You make understanding OS very easy.... thanks for these amazing lectures 👏

Bee_artistic
Автор

sir you’re explanation is awesome. you have cleared all my doubts 👏👏

rahulvarma
Автор

Thank you so much for creating these videos, I’ve been watching em from a long time, really grateful to you sir! ( already subscribed and shared to my friends too) you deserve much more audience

innocentboys
Автор

Your lectures helps me to clear my concepts and thank you for providing great knowledge in simple language 🙏🏻

_codexninja_
Автор

Thanks sir...
Ur explanation is really
N ur playlist is so helpful ❤

prabhakarkumar
Автор

life saver sir thankyou for all of your content you make .

harshalmali