Ch. 9 Secondary Storage Flashcards

1
Q

What are the 5 common Disk Scheduling Strategies?

A

> First Come First Serve (FCFS/FIFO)
Shortest Seek Time First (SSTF)
SCAN (“Elevator”)
C-SCAN (circular SCAN)
C-LOOK (circular LOOK)

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

Attributes of Memory

A

> Volatile (lose data on shutdown)
Transient (impermanent)
Controlled by OS

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

Attributes of Secondary Storage

A

> Non-volatile (data kept when machine is off)
Persistent (permanent until deleted)
Can be controlled by users

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

What is the most costly component of a disk I/O operation?

A. Seek Time
B. Rotational Time
C. Transfer Time

A

A) Seek Time.
Requires motor movement of the read/write head (slow)

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

Seek Time

A

Cost of moving the read/write head to the right position (motor movement)

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

Rotational Time

A

Time to wait until the disk rotates into position

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

Transfer Time

A

Time taken to read/write the data

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

Disk scheduling strategies try to reduce which component of a disk I/O operation

A

Seek Time.

Scheduling strategies schedule multiple disk requests

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

If a process is forked, will the parent and child process share the same files?

A

Yes, even though they run independently, the parent and child share the same files. The read/write pointer for the file is the same for the parent and child.

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

What does a directory contain?

A

A directory is just a file with a list of file names and a pointer (index for entry in I-Node table)

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

Contiguous Allocation

A

Allocate disk space like paged segmented memory. Keep a free list of unused disk space.

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

Chained Allocation

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

Indexed Allocation

A

Allocate an array of pointers during the file creation. Fill the array as new disk blocks are assigned.

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

Name 3 ways file systems maintain a list of free blocks

A

> Bit Vectors
Linked list
Indexing

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

Why is it desirable to use segmentation?

A

A segment is smaller than a whole process which means less I/O time is required to swap a segment.

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