Unit 5
Unit 5
Advantages
• If there is low main memory so some processes may has to wait for
much long but by using swapping process do not have to wait long
for execution on CPU.>It utilize the main memory.>Using only single
main memory, multiple process can be run by CPU using swap
partition.>The concept of virtual memory start from here and it utilize
it in better way..This concept can be useful in priority based
scheduling to optimize the swapping process.
Disadvantages
• If there is low main memory resource and user is executing too many
processes and suddenly the power of system goes off there might be
a scenario where data get erase of the processes which are took
parts in swapping.
• Chances of number of page faults occur
• Low processing performance
Administering files
There are many ways to work with the files on your system. Usually you create a
text file with a text editor.
Command summary for files The following are commands for files, file
handling procedures, and DOS files. There is also a list of commands for linking
files and directories.
4)FILE SYSTEMS STRUCTURE: File System provide efficient access to the disk by
allowing data to be stored, located and retrieved in a convenient way. A file System
must be able to store the file, locate the file and retrieve the file. Most of the Operating
Systems use layering approach for every task including file systems. Every layer of the
file system is responsible for some activities.
The image shown below, elaborates how the file system is divided in different layers,
and also the functionality of each layer
5.) FILE SYSTEM IMPLEMENTATION: A file is a collection of related information. The
file system resides on secondary storage and provides efficient and
convenient access to the disk by allowing data to be stored, located, and
retrieved.
9.ALLOCATION METHODS: There are various methods which can be used to allocate disk
space to the files. Selection of an appropriate allocation method will significantly affect the
performance and efficiency of the system. Allocation method provides a way in which the disk
will be utilized and the files will be accessed. There are following methods which can be used
for allocation. >1Contiguous Allocation 2.Extents 3.Linked Allocation 3.Clustering 4.FAT
5.Indexed Allocation 6.Linked Indexed Allocation 6.Multilevel Indexed Allocation
7.Inode