Lecture 8: Operating Systems Flashcards

1
Q

Name the three layers of an Operating System and describe them.

A

Command Layer (shell/GUI): the user’s interface to the operating system. Accepts commands and requests from user.
Service Layer: contains a set of functions (API) called by programs and command layer for loading, managing and executing programs.
Kernel: interacts with and manages computer’s hardware resources, allocating them to users and apps as necessary.

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

Describe the Bootstrapping process.

A

Bootstrapping is the initiating of the operating system. The BIOS looks for OS in fixed location, loads OS into RAM, transfers control to the OS and then loader program in OS can begin loading and using programs.

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

List some functions the Kernel performs.

A

Process Management, CPU Management, Memory Management, User Management, I/O Device Management, File System Management.

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

What is a process?

A

A unit of executing software that is managed independently by the OS.
A program is not equivalent to a process. A program usually runs as a single process and sometimes as multiple processes.

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

Describe the difference between a single process OS and multitasking OS.

A

Single process: only allow one user program to be executing at a given time.
Multitasking: allows user programs to be executed concurrently. Not in parallel, however.

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

What are the three states a process can be in?

A

Ready state: process is ready and waiting to access CPU.
Running state: process is running and using CPU.
Blocked state: process is suspended while interrupt is processed.

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

What is the process of switching back and forth rapidly between programs?

A

Time-slicing.

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

What is the process of selecting which program is to run?

A

Dispatching/scheduling.

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

Name 3 different ways to CPU-schedule and describe them.

A

First come first served, explicit priority ranking and shortest remaining time.

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

Describe pre-emptive and non pre-emptive OSs.

A

Pre-emptive: OS can interrupt and force process to yield CPU to other processes.
Non Pre-emptive: OS allows processes to decide which controls CPU.

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

What is Time-sharing?

A

Time-sharing is the process of an OS having a timer which generates an interrupt in order to allow the OS to start another process to run on the CPU. It is inherently pre-emptive.

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

What is dispatching?

A

The task of switching between processes.

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

What is a process’s context/volatile portion?

A

The information that defines a process and is contained within the CPU ‘s registers.

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

What is context-switching?

A

The process of saving current process’ context to the stack and loading another’s from the stack into the CPU’s registers.

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

What is context-switching?

A

The process of saving current process’ context to the stack and loading another’s from the stack into the CPU’s registers.

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

What is memory management?

A

The managing of allocation and freeing of memory being used by running processes.
It protects processes from being corrupted by other processes.

17
Q

If a process is too large for a given chunk of memory, how will the Kernel handle it?

A

It will be fragmented and split into multiple chunks.

18
Q

How does Virtual Memory work?

A

It breaks main memory into physical “pages” and defines a larger set of logical pages. Some of the logical pages are actually in secondary memory but when stuff needs to be accessed

19
Q

What is a software application?

A

A program that computer executes to perform a specific task. They are stored as either machine code or source code.

20
Q

What is the difference between machine code and source code?

A

Machine code: written in binary.
Source code: code written in a programming langauge.

21
Q

What are programming languages?

A

Languages evolved from machine code that are highly abstracted object-oriented languages.

22
Q

What is a virtual machine?

A

They are used to simulate one type of computer hardware running on a different underlying computer hardware. Their instruction codes are called “Bytecodes”.