2. Introduction to Operating Systems Flashcards

1
Q

What happens when a programs run?

A

The processor fetches instructions from memory, decodes the instructions and executes them.

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

What is virtualisation?

A

Taking a physical system and creating a virtual form of it.

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

What is an operating system?

A

It is a body of software that makes it easy to run programs, allows programs to share memory and enables programs to interact with devices.

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

What are resources?

A

Anything valuable such as CPU, memory and disk.

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

What is the result of virtualising CPU?

A

An illusion to processes where each of them seem to have an individual dedicated CPU.

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

How does memory work?

A

It is a just an array of bytes where we can read and write to store information.

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

What is the result of virtualising memory?

A

An illusion to processes where each of them seem to have an individual dedicated physical memory.

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

What is concurrency?

A

Working on many things at once in the same program.

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

What is a thread?

A

It is a lightweight function that runs in the same process, where they share the same memory space, data, code with other threads. The only thing they don’t share is the stack pointer.

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

What is persistence?

A

Managing files stored in the disk space to prevent ease of data loss in memory.

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

What is protection?

A

Ensuring that malicious behaviours do not affect other processes

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

What are the goals of an operating system?

A
  1. Provide high performance
  2. Protection
  3. Isolation
  4. Energy-efficient
  5. Security
  6. Mobility
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is batch processing?

A

Setting up a number of jobs and running them in a batch by computer operators.

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

What is a system call?

A

A mechanism to request a service from the operating systems with special pair of hardware instructions and hardware state.

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

What is a procedure call?

A

A standard function calling mechanism.W

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

What is the difference between system calls and procedure calls?

A

System call transfers control to operating systems while raising the hardware privilege level.

17
Q

What is user mode?

A

A privilege level where applications have restricted access to hardware.W

18
Q

What is kernel mode?

A

A privilege level where OS has the full access to hardware.W

19
Q

What is a trap?

A

A special hardware instruction that is encountered when a process tries to access a system call or when it throws an exception.

20
Q

What is a trap handler?

A

A set of instructions that should be executed based on the problem that caused the trap. For example, exceptions or system calls.

21
Q

What is a return-from-trap instruction?

A

An instruction that reverts kernel mode to user mode and passes the control back to the application.

22
Q
A