OS Intro[1] - Exam 1

OS Intro[1] - Exam 1

memorize.aimemorize.ai (lvl 286)
Section 1

Preview this deck

What is an example of when a trap might occur?

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (22)

Section 1

(22 cards)

What is an example of when a trap might occur?

Front

A trap might occur when a process tries to access a memory address outside its address space.

Back

What are examples of users that require memory space?

Front

1. In-Place Algorithms 2. executing Threads

Back

What is a trap instruction?

Front

A trap is a software generated interrupt that occurs when exceptions arise. A trap results in a switch from user mode to kernel mode (context-switch) so the OS would perform some task before returning control to originating process.

Back

What are examples of users that require executing power?

Front

1. OS Processes 2. Threads 3. Networks Requests

Back

What is space sharing in OS?

Front

The sharing of memory space by many users at the same space.

Back

Instructions related to accessing I/O devices are typically privileged instructions, meaning they can only be executed in kernel mode. Why?

Front

I/O devices are usually restricted for different users. These restrictions are provided by the system administrators which are enforced so that user-level programs cannot interfere with them.

Back

What is throughput?

Front

The number of instructions that can be executed in a unit of time.

Back

What is CPU pipeline?

Front

CPU pipeline is a technique that implements instruction-level parallelism within a single processor. This allows for faster CPU throughput than would otherwise be possible. (Fetching another instruction before the current in complete)

Back

What kind of multiplexing can be used for the following resources: memory, disk?

Front

Space Multiplexing

Back

What are examples of memory space?

Front

1. Hard Disk 2. RAM 3. Database

Back

How is I-Node used in operating systems?

Front

I-Node represents fields of a file system object such as: 1. Who owns the files 2. Where its disk blocks are and more.

Back

What are examples of abstractions?

Front

1. Processes 2. Address Spaces 3. Files

Back

What is virtual memory?

Front

Virtual memory is a feature of an OS that allows a computer to compensate for shortages of physical memory by temporarily transferring pages of a program from main memory to disk storage.

Back

What is virtual memory address?

Front

Virtual memory maps he memory address used by a program (this is the virtual memory address), to physical addresses in computer memory.

Back

Which of the following instructions should be allowed only in kernel mode? (a) Read the time-of-day clock (b) Change the memory Map (c) Disable all interrupts (d) Set the time-of-day clock

Front

b, c, and d are all instructions that should only be allowed in kernel mode.

Back

What are examples of executing power?

Front

1. CPU 2. Logical Processor 3. GPU

Back

What are interrupts?

Front

Interrupts, unlike traps, are generated by the hardware. They are asynchronous or "passive" since the interrupt handler has to wait for them to happen.

Back

What is I-Node?

Front

I-Node is a data structure used to represent a file system object.

Back

What kind of multiplexing can be used for the following resources: Display?

Front

Time and Space Multiplexing can both be used.

Back

What is the main purpose of an operating system?

Front

1. As an abstraction- provides users with abstractions that are more convenient than hardware. 2. As a resource manager- efficiently manages different parts of the system

Back

What kind of multiplexing can be used for the following resources: CPU, network card, printer, keyboard?

Front

Time Multiplexing

Back

What is time sharing in OS?

Front

The sharing of executing power by many users at the time time.

Back