LECTURE NOTES
on
OPERATING SYSTEM
AV
(ICS-401)
D
2023– 2024
YA
B. Tech IIIrd Sem e s t e r
Mr. Deepanshu Singh Yadav, Assistant Profes so r
H
Ms. Diksha Sharma, Assistant Profes so r
G
N
Sitapur Road, Lucknow
Uttar Pradesh
SI
India
Pin Code :226021
U
SH
INSTITUTE OF ENGINEERING
&TECHNOLOGY
N
PA
Department of Computer Science and Engineering
EE
D
REFERENCES :
Mr. Deepanshu Singh Yadav , Assistant Professor ,IET,LUCKNOW Page 1
[Link] Sharma, Assistant Professor ,IET,LUCKNOW
1. Silberschatz, Galvin and Gagne, “Operating Systems Concepts”, Wiley
2. Harvey M Dietel, “ An Introduction to Operating System”, Pearson Education
3. William Stallings, “Operating Systems: Internals and Design Principles ”, 6th Edition, Pearson
Education
4. D M Dhamdhere, “Operating Systems : A Concept based Approach”, 2nd Edition
5. Sibsankar Halder and Alex A Aravind, “Operating Systems”, Pearson Education
6. Rajiv Chopra, “ Operating System a Practical approach”, [Link]
7. [Link], “Operating System”,Technical Publications.
AV
8. [Link]/
9. [Link]
10. [Link]
11. Tutorials point
D
12. geeksforgeeks
13. [Link]
YA
Disclaimer: The e-content is exclusively meant for academic purposes and for enhancing teaching and
learning. Any other use for economic/commercial purpose is strictly prohibited. The users of the content
shall not distribute, disseminate or share it with anyone else and its use is restricted to advancement of
individual knowledge. The information provided in this e-content is developed from authentic references, to
H
the best of my knowledge.
G
N
SI
U
SH
N
PA
EE
D
Mr. Deepanshu Singh Yadav , Assistant Professor ,IET,LUCKNOW Page 1
[Link] Sharma, Assistant Professor ,IET,LUCKNOW
File Directories
The collection of files is a file directory. The directory contains information about the files,
including attributes, location, and ownership. Much of this information, especially that is
concerned with storage, is managed by the operating system. The directory is itself a file,
accessible by various file management routines.
Below the information contained in a device directory.
Name
AV
Type
Address
Current length
D
Maximum length
Date last accessed
YA
Date last updated
Owner id
Protection information
The operation performed on the directory are:
H
Search for a file
Create a file
Delete a file
List a directory G
N
Rename a file
Traverse the file system
SI
Advantages of Maintaining Directories
Efficiency: A file can be located more quickly.
Naming: It becomes convenient for users as two users can have same name for different
U
files or may have different name for same file.
Grouping: Logical grouping of files can be done by properties e.g. all java programs, all
SH
games etc.
Single-Level Directory
In this, a single directory is maintained for all the users.
Naming Problem: Users cannot have the same name for two files.
N
Grouping Problem: Users cannot group files according to their needs.
PA
EE
D
Mr. Deepanshu Singh Yadav , Assistant Professor ,IET,LUCKNOW
Page 1
[Link] Sharma, Assistant Professor ,IET,LUCKNOW
Two-Level Directory
In this, separate directories for each user is maintained.
Path Name: Due to two levels there is a path name for every file to locate that file.
Now, we can have the same file name for different users.
Searching is efficient in this method.
AV
D
YA
H
Tree-Structured Directory G
N
The directory is maintained in the form of a tree. Searching is efficient and also there is
grouping capability. We have absolute or relative path name for a file.
SI
U
SH
N
PA
EE
D
Mr. Deepanshu Singh Yadav , Assistant Professor ,IET,LUCKNOW
Page 1
[Link] Sharma, Assistant Professor ,IET,LUCKNOW