operating systems

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

1/63

flashcard set

Earn XP

Description and Tags

here we have graphs , codes then definitions of all final part of this course

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

64 Terms

1
New cards

Base and Limit Registers

2
New cards

    Multistep Processing of a User Program

3
New cards

paging hardware

4
New cards

Hierarchical Page Tables

5
New cards

Address-Translation Scheme

6
New cards

Three-level Paging Scheme

7
New cards

Hashed Page Table

8
New cards

Inverted Page Table Architecture

9
New cards

Schematic View of Swapping

10
New cards

Base register

holds the smallest legal physical memory address

11
New cards

Limit register

specifies the size of the range.

12
New cards

Logical address space

is the set of all logical addresses generated by a program

13
New cards

Physical address space

is the set of all physical addresses generated by a program

14
New cards

relocation register

Base Register used at execution time to perform logical-to-physical address translation.

15
New cards

dynamic loading

a technique where a routine is not loaded into memory until it is called during execution.

16
New cards

Static linking

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

17
New cards

Dynamic linking

linking postponed until execution time

18
New cards

Hole

block of available memory; holes of various size are scattered throughout memory (are gaps of unused memory between partitions.)

19
New cards

External Fragmentation

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

20
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

21
New cards

Paging

memory-management scheme that allow the physical address space of a process to be non-contiguous (logical memory chucnks)

22
New cards

frames

Divide physical memory into fixed-sized blocks (physical memory chunks)

23
New cards

page table

data structure used by the operating system to map logical pages to physical memory frames.

used to translate logical addresses to physical addresses in a paging memory system.

24
New cards

Page-table base register (PTBR)

points to the page table

25
New cards

Page-table length register (PTLR)

indicates size of the page table

26
New cards

swapped

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

27
New cards

Ready Queue

the list of all processes that are ready to run and are waiting for CPU time.

28
New cards

deadlock graph

29
New cards

Deadlock

situation where a set of processes are block because each process is holding resource and waiting for another resource that is acquired by some other process.

30
New cards

E is partitioned into two types

• request edge – directed edge Pi > Rj

 • assignment edge – directed edge Rj > Pi

 

31
New cards

Resource-Allocation Graph

32
New cards

Mutual Exclusion

not required for sharable resources (e.g., read-only files); must hold for non-sharable resources

33
New cards

Hold and Wait

must guarantee that whenever a process requests a resource, it does not hold any other resources

34
New cards

Circular Wait

Impose a total ordering of all resource types, and require that each process requests resources in an increasing order of enumeration

35
New cards

A safe state

when the system can guarantee that all processes can finish eventuallyone at a time — without causing a deadlock.

36
New cards

claim edge

Process might ask for this resource late

37
New cards

Rollback

return to some safe state, restart process from that state

38
New cards

Starvation

same process may always be picked as victim, process will never finish its designated tasks (most common solution is to include the number of rollbacks in the cost factor)

39
New cards

Cooperating process

one that affect or be affected by other processes executing in the system.

40
New cards

Race condition

when two or more processes try to use or change shared data at the same time, and the final result depends on which one finishes first, which can lead to unexpected or incorrect results

41
New cards

Critical section problem

is to design a protocol that the processes can use to synchronize their activity so as to cooperatively share data.

 

42
New cards

requirements for solution to critical-section problem

1-     Mutual exclusion

2-     Progress

3-     Bounded waiting

43
New cards

Peterson’s solution

is restricted to two processes that alternate execution between their critical sections and remainder sections

44
New cards

The compare_and_swap  Properties

• Executed atomically

 • Returns the original value of passed parameter value

 • Set the variable value the value of the passed parameter new_value but only if *value == expected is true. That is, the swap takes place only under this condition

45
New cards

block

place the process invoking the operation on the appropriate waiting queue

46
New cards

wakeup

remove one of processes in the waiting queue and place it in the ready queue

47
New cards

monitors

A high-level abstraction that provides a convenient and effective mechanism for process synchronization.

48
New cards

Condition Variables graph

49
New cards

livness

set of properties that a system must satisfy to ensure processes make progress.

50
New cards

Starvation

indefinite blocking, A process may never be removed from the semaphore queue in which it is suspended

51
New cards

Priority Inversion

Scheduling problem when lower-priority process holds a lock needed by higher-priority process

52
New cards

condition construct

used inside monitors to allow a process to wait (pause) and later be signaled (resumed) by another process.

53
New cards

Virtual memory

separation of user logical memory from physical memory

54
New cards

Virtual address space

logical view of how process is stored in memory

55
New cards

Virtual Memory That is Larger Than Physical Memory graph

56
New cards

Demand paging

Could bring entire process into memory at load time OR bring a page into memory only when it is needed.

57
New cards

Lazy swapper

never swaps a page into memory unless page will be needed

58
New cards

Demand paging graph

59
New cards

page fault

During MMU address translation, if valid–invalid bit in page table entry is i

60
New cards

Page replacement

find some page in memory, but not really in use, page it out

61
New cards

Over-allocation

giving out more memory than what’s available, which causes performance problems like thrashing

62
New cards

modify (dirty) bit

shows if a page has been changed .

if not, it doesn’t need to be saved to disk when replaced.

63
New cards

Page Replacement graph

64
New cards

Thrashing

A process is busy swapping pages in and out. In other words, a process is thrashing if it is spending more time paging than executing