OS Review 1

studied byStudied by 0 people
0.0(0)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

1 / 30

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

31 Terms

1

What are three objectives of an OS design?

Convenience
Efficiency
Ability to Evolve

New cards
2

What is the kernel of an OS?

The part of the OS that has direct access to the hardware.

New cards
3

What is multiprogramming?

When the processor switches between different programs mid-run.

New cards
4

What is a process?

A program to be executed by the processor.

New cards
5

How is the execution context of a process used by the OS?

It is used to determine a program’s priority and how much time and memory it is allocated.

New cards
6

List and briefly explain five storage management responsibilities of a typical OS.

Process Isolation
Memory Management
Modular Programming Support
Access Control
Long-term Storage

New cards
7

Explain the distinction between a real address and a virtual address.

A real address is an actual location in memory.
A virtual address is a symbol that points towards a real address in memory.

New cards
8

Describe the round-robin scheduling technique.

Round-Robin is when the processor will rotate between active programs in queue.

New cards
9

Explain the difference between a monolithic kernel and a microkernel.

A monolithic kernel will handle every system on the computer, exposing everything to memory.
A microkernel will only control a few essential functions, such as scheduling and addressing. Everything else is assigned to its own system.

New cards
10

What is multithreading?

Using multiple processors to work multiple tasks at once.

New cards
11

List the key design issues for an SMP operating system.

Multiprogramming Support
Scheduling
Synchronization
Memory Management
Reliability

New cards
12

Contrast the scheduling policies you might use when trying to optimize a time-sharing system with those you would use to optimize a multiprogrammed batch system.

A time-sharing system would prioritize I/O over speed, while a multiprogrammed system would prioritize speed over I/O.

New cards
13

What is the purpose of system calls, and how do system calls relate to the OS and to the concept of dual-mode (kernel-mode and user-mode) operation?

A system call is used when a user-mode program wants to perform a kernel-mode action and must ask the processor to do it.

New cards
14

What is an instruction trace?

A list of program instructions that either have been or are going to be executed.

New cards
15

What common events lead to the creation of a process?

New Batch Job
User Login
OS Service
Child of Parent Service

New cards
16

For the processing model of Figure 3.6, briefly define each state.

New – Process is set to be admitted.
Ready – Process is ready to be executed.
Running – Process is being executed.
Blocked – Process has been interrupted.
Exit – Process has finished.

New cards
17

What is swapping and what is its purpose?

Swapping moves parts of a process from main memory to disk. This is usually done if a program requires I/O, since disk I/O is faster than system I/O.

New cards
18

Why does Figure 3.9b have two blocked states?

So processes can be considered “ready” or “blocked” while being suspended.

New cards
19

List four characteristics of a suspended process.

Not immediately available.
May be waiting on an event.
Placed in suspension via itself, parent, or OS.
May not be activated unless the suspender says so.

New cards
20

List three general categories of information in a process control block.

IDs
Control & Status Registers
Control Information

New cards
21

Why are two modes (user and kernel) needed?

So the OS can distinguish between programs that need direct access to memory and programs that don’t need/shouldn’t have direct access to memory.

New cards
22

What are the steps performed by an OS to create a new process?

Assign ID.
Allocate memory.
Init control block.
Set needed links.
Create/expand other structs.

New cards
23

What is the difference between an interrupt and a trap?

An interrupt is a request from the program, parent, or OS for purpose of waiting on an event.
A trap is a demand from the OS to handle an error or exception.

New cards
24

Give three examples of an interrupt.

Clock Interrupt
I/O Interrupt
Memory Fault

New cards
25

Turnaround Time =

\text{I/O Time}+\text{Process Time}

New cards
26

Throughput given n jobs =

avg(\text{Turnaround Time})

New cards
27

Processor Utilization =

\frac{\text{Process Time}}{\text{Turnaround Time}}

New cards
28
<p>This is a…</p>

This is a…

5-State Queueing Model

New cards
29
<p>This is a…</p>

This is a…

7-State Process Model

New cards
30

Residency

Whether or not something is a part of main memory.

New cards
31

Suspension

Swaps a program to disk.

New cards

Explore top notes

note Note
studied byStudied by 56 people
145 days ago
5.0(2)
note Note
studied byStudied by 9 people
751 days ago
5.0(1)
note Note
studied byStudied by 51 people
758 days ago
5.0(2)
note Note
studied byStudied by 22 people
968 days ago
4.5(2)
note Note
studied byStudied by 7 people
569 days ago
5.0(1)
note Note
studied byStudied by 1 person
809 days ago
5.0(1)
note Note
studied byStudied by 36 people
720 days ago
5.0(1)
note Note
studied byStudied by 10144 people
699 days ago
4.6(60)

Explore top flashcards

flashcards Flashcard (27)
studied byStudied by 21 people
141 days ago
5.0(3)
flashcards Flashcard (97)
studied byStudied by 18 people
843 days ago
5.0(1)
flashcards Flashcard (61)
studied byStudied by 5 people
94 days ago
5.0(1)
flashcards Flashcard (75)
studied byStudied by 8 people
724 days ago
5.0(2)
flashcards Flashcard (20)
studied byStudied by 2 people
15 days ago
5.0(1)
flashcards Flashcard (32)
studied byStudied by 19 people
719 days ago
5.0(1)
flashcards Flashcard (48)
studied byStudied by 39 people
407 days ago
5.0(1)
flashcards Flashcard (278)
studied byStudied by 172 people
134 days ago
5.0(1)
robot