Operating System Lecture Three: DR Jamal Altuwaijari
Operating System Lecture Three: DR Jamal Altuwaijari
Lecture three
Dr jamal altuwaijari
3 - Information Management
C/S can store information on several different types of physical media
such as:
a- Magnetic tape.
b. Disk or drum.
c. Optical disk.
Each of these media has its own characteristics and physical
organization.
The 0/S provides a uniform logical view of information storage.
3-1 The File System
The file system consists of three distinct parts:.
a. A collection of files, each storing related data.
B. A directory structure, which organizes and provides information
about all the files in the system.
c. A partitions which are used to separate physically or logically large
collections of directories
3-2 File Concept
A file is a named collection of related information that is recorded on
secondary storage.
- The data cannot be written to secondary storage unless they are
within a file.
- Commonly files represent programs (Both source and object forms)
and data. -
- All disk I/O is units of one block (physical record) and all blocks are the
same size
3-3 Files Attributes
In addition to file name, a file has certain other attributes which vary from'
one 0/S to another but typically consists of these:
Name, Type, location, Size, Protection, Time and Date, User identification
:Advantages
It is easy to support and understand
:Disadvantages
When the number of files increases or when there is more than user. Since
all files in the same directory they must have unique names
3-8-2 Two-level Directory
In the two level directory structure, each user has his own user file
.directory (UFD)
Each UFD a similar structure, but lists only the files of a single user, see
figure 3.0
When a user logs in the system's master file directory, (MFD) is search.
The MFD is indexed by user name or by account number, and each
.entry points to the UFD for that user
3-8-2 Two-level Directory
:Advantages
.It is solves the name—collision problem .1
.It fasts to locate certain file name .2
.We can use the same file name in two different UFD .3
:Disadvantages
It requires a complicate search procedure where we need to join the
.user name with file name
3.8.3 Tree -Structured Directories
The two—level directory is a two level tree we can extend this structure
.to a tree of arbitrary height. See figure 3.8
This generalization allows user to create their own sub—directories and -
to organize their file accordingly. The MS-DOS system for example is
structured as tree
The tree has a root directory. Every file in the system has a unique path -
name. A path name is the path from the root through all the
.subdirectories to a specified file