Group 5 OS Work
Group 5 OS Work
GROUP V
LECTURER: MADAM BARBARA ASINGIRWE KABWIGA
GROUP MEMBERS
4. PREEMPTION
• Allow the system to forcefully take away the resource from a process
if doing so will prevent a deadlock. This can be done by setting the
maximum time limit for a process to hold a resource. If the limit is
exceeded the resource is preempted.
DEADLOCK AVOIDANCE
vv
Sector
• File Systems
They determine hoe data is stored and retrieved from a disk.
Common file systems include NTFS, FAT32, ext4, etc. The file system
also manages metadata like file permissions, timestamps, and more.
• Inodes;
These are data structures that store metadata about files, such as file
size, owner, and pointers to the actual data blocks.
• Master Boot Record(MBR) and GUID partition Table (GPT)
Structures that store information about disk partitions and help the
operating system to boot.
MBR is older and supports up to 4 partitions, while GPT supports more
partitions and larger disks.
DISK SCHEDULING
Disk scheduling refers to the method used by the operating system to
determine the order in which disk read and write requests are processed.
Since hard drives have mechanical components (like read and write
heads that need to move to different parts of the disk), efficient
scheduling minimizes seek time (the time it takes for the head to reach
the desired location on the disk), which improves system performance.
C-SCAN
Similar to SCAN, but the head only moves in one direction(from outer to inner). When
it reaches the end, it quickly returns to the starting point without servicing requests
during the return, hence the name Circular SCAN
It prevents starvation but can lead to longer time wait times for the for the requests
on the opposite side of the disk
PRACTICAL EXAMPLES ON DISK SCHEDULING
Given the following track requests in the disk
queue, compute for the Total Head Movement
(THM) of the read/write head : 95, 180, 34, 119,
11, 123, 62, 64
= 207 tracks
DISK RELIABILITY
Disk reliability refers to the ability of a storage device to function
correctly over time without failure or data loss.
Disk Monitoring
Monitoring disk health metrics, such as SMART(Self-Monitoring Analysis
Reporting Technology) attributes, can help identify potential issues early on.
Power Protection
Using uninterruptible power supplies (UPS) can protect disks from power
outages and fluctuations.
Regular Maintenance
Periodic maintenance, including cleaning and testing, can help prevent disk
failures.
DISK RELIABILITY METRICS
These are measures used to assess and predict the reliability, lifespan, and
overall performance of storage devices.
These metrics help determine the likelihood of a disk failure, how well it can
handle data under various conditions, and how long it will last under normal
usage.