Module 4.1 Operating Systems

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/62

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

63 Terms

1
New cards

backing store (disk)

A program is permanently kept on the?

2
New cards

True

True or False:

  • For a program to be run it must be brought from the backing store into memory and placed within a process

3
New cards
4
New cards

When the main memory can take many cycles it causes

5
New cards

Cache

This sits between the main memory and CPU registers

6
New cards

Input Queue

Programs on disk, ready to be brought into memory to execute, are placed in an

7
New cards

Symbolic

Source code addresses are usually

8
New cards

Relocatable Addresses

Compiled code addresses bind to

9
New cards

linker or loader

binds relocatable addresses to absolute addresses

10
New cards

Absolute Code

In Compile-time: If memory location known a priori, _______ can be generated; must recompile code if starting location changes

11
New cards

relocatable code

In load time: Must generate ______ if the memory location is not known at compile time

12
New cards

Execution time

Binding delayed until run time if the process can be moved during its execution from one memory segment to another

13
New cards

Logical address

generated by the CPU;

14
New cards

Physical address

address seen by the memory unit

15
New cards

Logical address space

the set of all logical addresses generated by a program

16
New cards

Physical address space

set of all physical addresses generated by a program

17
New cards

Relocation Register

generalization of the base-register scheme

18
New cards

True

True or False:

  • The value in the relocation register is added to every address generated by a user process at the time it is sent to memory

19
New cards

Execution-time binding

occurs when reference is made to the location in memory

20
New cards

Dynamic Loading

program consist of a main part and a number of routines

21
New cards

Routine

This is not loaded unless it’s called

22
New cards

True

True or False

  • All routines kept on disk in relocatable load format

23
New cards

Static linking

system libraries and program code combined by the loader into the binary program image

24
New cards

Dynamic linking

linking postponed until execution time

25
New cards

Stub

A small piece of code tha is used to locate the appropriate memory-resident library routine

26
New cards

Stub

replaces itself with the address of the routine and executes the routine

27
New cards

Relocation registers

used to protect user processes from each other, and from changing operating-system code and data

28
New cards

base register

contains the value of the smallest physical address

29
New cards

limit register

contains a range of logical addresses – each logical address must be less than the limit register

30
New cards

Hole

block of available memory; holes of various size are scattered throughout memory

31
New cards

First-fit

Allocate the first hole that is big enough

32
New cards

Best-fit

Allocate the smallest hole that is big enough; must search the entire list, unless ordered by size

33
New cards

Worst-fit

Allocate the largest hole; must also search entire list

34
New cards

External Fragmentation

total memory space exists to satisfy a request, but it is not contiguous

35
New cards

Internal Fragmentation

allocated memory may be slightly larger than requested memory; this size difference is memory internal to a partition, but not being used

36
New cards

Segmentation

  • Memory-management scheme that supports user view of memory

37
New cards

Programs

a collection of segments

38
New cards

a logical unit such as:

  • Ā  main program

  • Ā  procedure

  • Ā  function

  • Ā  method

  • Ā  object

  • Ā  local variables, global variables

  • Ā  common block

  • Ā  stack

  • Ā  symbol table

  • Ā  arrays

39
New cards

Paging

  • The physical address space of a process can be noncontiguous; the process is allocated physical memory whenever the latter is available

40
New cards

Paging

  • Avoids external fragmentation

  • Avoids the problem of varying sized memory chunks

41
New cards

frames

Divides physical memory into fixed-sized blocks

42
New cards

Page Table

translate logical to physical addresses

43
New cards

True

True or False?

  • The page table is kept in main memory

44
New cards

Page-table base register (PTBR)

points to the page table

45
New cards

Page-table length register (PTLR)

indicates the size of the page table

46
New cards

translation look-aside buffers

47
New cards

Memory protection

implemented by associating the protection bit with each frame to indicate if access is allowed

48
New cards

Valid-invalid

bit attached to each entry in the page table:

49
New cards

valid

that the associated page is in the process’ logical address space, and is thus a legal page

50
New cards

invalid

indicates that the page is not in the process’ logical address space

51
New cards
52
New cards

Private code and data

Each process keeps a separate copy of the code and data

53
New cards

True

True or False

  • The pages for the private code and data can appear anywhere in the logical address space

54
New cards

Hierarchical Page Tables

Break up the logical address space into multiple page tables

55
New cards

Two-level Page Example

A logical address (on 32-bit machine with 1K page size)

12 but page number

10 bit page offset

56
New cards

64-Bit Logical Address Space

  • Even a two-level paging scheme not sufficient

57
New cards

Hashed Page Tables

Used in architecture with address spaces > 32 bits

58
New cards

Virtual Page Number

hashed into a page table

59
New cards

Swapping

  • A process can be swapped temporarily out of memory to a backing store, and then brought back into memory for continued execution

60
New cards

Backing store

ast disk large enough to accommodate copies of all memory images for all users; must provide direct access to these memory images

61
New cards

Roll out, roll in

swapping variant used for priority-based scheduling algorithms; the lower-priority process is swapped out so the higher-priority process can b

62
New cards

True

True or false:

The major part of swap time is transfer time; total transfer time is directly proportional to the amount of memory swappe

63
New cards