OPERATING SYSTEMS LESSON 3 Flashcards

1
Q

is a technique that allows the execution of processes that may not be completely
in memory.

A

VIRTUAL MEMORY

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

The main visible advantage of this scheme is that programs can be larger than physical memory.

A

VIRTUAL MEMORY

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

Further, Virtual Memory abstracts main memory into mainly __________________ as viewed by the user from physical memory.

A

extremely large, uniform array of storage separating logical memory

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

This technique frees programmers from concern over memory storage limitations.

A

Virtual Memory

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

This technique frees programmers from concern over __________________________

A

memory storage limitations.

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

Virtual memory is not easy to implement,
however and may substantially _____________ if used carelessly

A

DECREASE PERFORMANCE

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

This is the separation of use logical memory from physical memory

A

Virtual Memory

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

Virtual Memory separation allows an
extremely large virtual memory to be provided for programmers when only a _________________

A

smaller physical memory is
available.

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

Virtual memory is commonly implemented by __________________

A

Demand Paging

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

Virtual memory can also commonly be implemented by __________________

A

Segmentation System

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

Several systems provide a paged segmentation scheme where segments are broken into _____________________

A

Pages

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

_________________is similar to a paging system but with swapping.

A

Demand-Paging System

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

In this virtual memory implementation, processes reside in ________________ ( which is usually a ___________)

A

Secondary Memory, Disk

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

. When we want to execute a process, we ________it into __________

A

Swap, Memory

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

When a _____________is to be swapped in, the __________ guesses which page will be used before the process is swapped out again.

A

Process, Pager

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

Instead of swapping in a whole process, the pager brings only those ________ Into memory.

A

necessary pages

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

Demand Paging avoids reading into _______________ that will not be used anyway, decreasing the swap time and the amount of _________________ needed.

A

memory pages , physical memory

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

With __________________, we need some form of _____________ support to distinguish between those pages that are on the disk.

A

Demand Paging, hardware

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

When this bit is set to “_______”, this value indicates that the page is either __________ or _________ but not currently in disk

A

Valid, Not Valid, Valid

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

Meaning of:
Valid Bit and Not Valid Bit

A

a Not in the logical address space of the process.
b currently on the disk.

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

The _________________ for a page that is brought into memory is set
as usual,

A

page table entry

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

The page-table entry for a page that is not currently in memory is simply marked _____________, or contains the ___________________

A

Invalid
The address of the page on disk

23
Q

Access to a page marked invalid causes what?

A

Page Fault

24
Q

The_______________ in translating the address through the page table, will notice that the _______________, causing a ________to the operating system.

A

paging hardware, invalid bit is set, trap

25
This trap is the result of the operating system’s failure to bring the _____________into memory, rather than an ______________ as a result of an attempt to use an _____________
desired page , invalid address error, illegal memory address.
26
Page Replacement takes the following approach
if no frame is free, we find one that is not currently being used and free it.
27
(PAGE FAULT HANDLING 1) Check an ______________ for this process to determine whether the reference was an __________________.
internal table, valid or invalid memory access
28
(PAGE FAULT HANDLING 2) If the reference was invalid, we _____________. If it is valid, but we have not yet____________, we now page in later.
terminate the process, brought in that page
29
(PAGE FAULT HANDLING 3) FIND WHAT
Find a Free Frame
30
(PAGE FAULT HANDLING 4) Schedule a _____________ to read the desired page into the _______________.
disk operation, newly allocated frame
31
(PAGE FAULT HANDLING 5) When the ___________ is complete, we modify the ____________kept with the process and the page table to indicate that the page is ___________.
disk read, internal table , now in memory
32
(PAGE FAULT HANDLING 6) Start the _______that was interrupted by the___________. The process can now access the page as though it had __________.
instruction illegal address trap always been in memory
33
We can free a frame by _______, and changing the _____________ to indicate that the page is no longer in memory.
writing its contents to swap space page table
34
The freed frame can now be used to hold the page for which ________________________.
the process faulted
35
What is basic to demand paging
Page replacement
36
Page replacement completes the separation between the ___________ and ___________.
logical memory physical memory
37
With this page replacement mechanism, a very large virtual memory can be provided for programmers on a______________.
smaller physical memory
38
To implement demand paging we must develop a _____________ and a ________________.
frame allocation algorithm page replacement algorithm
39
There are many page replacement algorithms but the best is the one with the ________________
lowest page fault rate.
40
An algorithm can be evaluated by running it on a _____________ and ___________________.
particular string of memory string references computing the number of page faults
41
Beladys’s Anomaly states that
“the page fault rate may increase as the number of allocated frames increases”
42
FIFO Algorithm (First In First Out)
The simplest page replacement algorithm
43
When a page must be replaced, the oldest page is chose.
FIFO
44
Optimal Algorithm has _______________
the lowest page fault rate of all algorithms.
45
It simply replaces the page that will not be used for the longest period of time.
Optimal Algorithm
46
Page replacement schema of Optimal Algorithm
algorithms. It simply replaces the page that will not be used for the longest period of time.
47
it associates with each page the time of that page’s last use.
LRU Algorithm (Least Recently Used)
48
1st One liner definition of LRU
it associates with each page the time of that page’s last use.
49
It chooses that page that has not been used for the longest period of time.
LRU Algorithm
50
2nd One liner definition of LRU
It chooses that page that has not been used for the longest period of time.
51
This strategy is the ______________ looking backward in time rather than forward.
OPTIMAL PAGE REPLACEMENT ALGORITHM
52
Bottom note for Lessong 3: As the ________________
As the number of frames increase, the page fault decreases.
53