OS Exam 3 Study Guide Flashcards

(25 cards)

1
Q

What is the primary function of the hard disk drive in operating systems?

A

To provide persistent data storage

The hard disk drive is essential for storing data permanently, unlike volatile memory.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the primary purpose of persistence in operating systems?

A

To ensure data is not lost after a system crash or shutdown

Persistence is crucial for maintaining data integrity across sessions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the two components of positioning time?

A
  • seek time
  • rotational latency

These components are critical for determining how quickly data can be accessed on a disk.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

The surface of a magnetic disk platter is divided into _______.

A

sectors

The platter is organized into tracks, and each track is further divided into sectors.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which phase of a seek operation involves carefully positioning the disk head over the correct track?

A

Settling

This phase is crucial for accurate data retrieval.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which of the following disk head scheduling algorithms does not take into account the current position of the disk head?

A

FCFS (First-Come, First-Served)

Other algorithms like C-SCAN and SCAN consider the disk head’s current position.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which of the following is a disadvantage of the SSTF (Shortest Seek Time First) scheduling algorithm?

A

Starvation of far-away requests

SSTF can lead to inefficiencies for requests that are not near the current head position.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the main goal of using RAID?

A

Enhance storage capacity and redundancy

RAID configurations are designed to improve data reliability and performance.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which RAID level uses mirroring to ensure data redundancy?

A

RAID 1

RAID 1 provides redundancy by duplicating data across multiple disks.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the primary disadvantage of RAID 0?

A

No data redundancy

RAID 0 offers performance benefits but lacks fault tolerance.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Which RAID level combines both striping and mirroring?

A

RAID 10

RAID 10 provides both performance and redundancy.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How does RAID 5 achieve redundancy?

A

By storing parity information distributed across all disks

This allows for data recovery in case of a single disk failure.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the purpose of the inode in a file system?

A

To store metadata about a file, such as its size, permissions, and location

Inodes are essential for file management in Unix-like systems.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is a superblock in a file system?

A

A data structure that contains metadata about the file system itself

The superblock holds information necessary for managing the file system.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Which data structure is commonly used to keep track of free blocks in a file system?

A

Bitmap

Bitmaps efficiently represent the allocation status of blocks.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

In an inode-based file system, how is the actual file data located?

A

By reading the directory entry and resolving file names to inodes

This process is crucial for accessing file contents.

17
Q

What is the correct sequence for reading a file in an inode-based file system?

A

Search directory for file name → Retrieve inode → Read data blocks using inode pointers

This sequence ensures proper access to file data.

18
Q

How does parity contribute to fault tolerance in RAID systems?

A

By storing a calculated value that can be used to reconstruct lost data

Parity allows for data recovery without full duplication.

19
Q

What is the total usable file data space available in a file system with 27 data blocks of 512 bytes each?

A

13,824 bytes

This is calculated as 27 blocks * 512 bytes/block.

20
Q

What is the purpose of the inode bitmap?

A

Tracks which inodes are in use (allocated) vs. free

This helps manage inode allocation efficiently.

21
Q

What is the purpose of the data bitmap?

A

Tracks which data blocks are used vs. free

This is essential for managing storage space.

22
Q

How many inodes can this filesystem support?

A

8 inodes

This is determined by the number of blocks and the size of each inode.

23
Q

What is the file size for a file using 2 direct data blocks of 512 bytes each?

A

1024 bytes

Each block contributes 512 bytes to the total file size.

24
Q

What blocks store file data?

A

Blocks 10, 11, 13, 14, and 15 store file data

These blocks include both direct and indirect references.

25
What block(s) store **metadata**?
Blocks 3 and 12 store metadata ## Footnote Block 3 contains the inode, while Block 12 is an indirect block.