Unit 5 OS Flashcards

1
Q

What is the computer Kernel

A

It’s a computer program at the core of the computers operating system.

It always resides in memory

It connects the application software to the hardware of the computer

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

What happens when a computer first starts running

A

It will load a bootstrap program stored in rom.

  • It initializes all aspects of the system.
  • knows how to load the OS
  • Locates the kernel and loads it into memory
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How are events signalled to the OS

A

Using interrupts

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

What does an interrupt do?

A

They interrupt the computer and what’s happening

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

How is an interrupt triggered

A

It’s an event triggered by a hardware signal sent to the CPU from an external device

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

What are the two most common interrupts

A
  • Generated by an Input/Output Device
  • Generated by a countdown timer to implement time sharing
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What happens when the CPU gets an interrupt

A

It will save the work it was doing before the interrupt.

It will determine the type of interrupt

Handles the Interrupt

Resumes

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

What are the two types of interrupts

A

Polling - a device is ready to be read, it does not know which device is ready so it polls all of them

Vectored - OS is told which device is ready

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

What is a trap

A

It’s a software interrupt

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

What is an example of a trap

A
  • Dividing by zero
  • Executing invalid opcode
  • Arithmetic overflow
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is multi programming

A

It’s the ability to run multiple programs on the same computer.
- Keeps multiple programs loaded in memory
- Os switches execution between them
- CPU never stays IDLE

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

What is Time Sharing

A

An extension of multiprogramming

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

What is virtual memory?

A

Memory that is loaded onto Non-Volatile memory. Usually it’s the non used memory moved onto a SWAP file

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

What are the two modes of operation (Dual-Mode Operation)

A
  • User Mode
  • Kernel Mode
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What mode is the computer on at boot time

A

Kernel Mode

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

In what mode are privileged instructions ran?

A

In kernel mode only

17
Q

What are some privileged instructions

A
  • IO Control
  • Timer Management
  • Interrupt Management
  • Context Switching
18
Q

What are some non-privileged instructions

A
  • Reading the status of the processor
  • Reading the System Time
  • Generate any trap instruction
  • Sending the final printout of Printer
19
Q

What is an example of process control in an OS System Calls

A
  • Create/terminate a process
  • Load and execute
  • Get/Set process attributes
  • Allocate and free memory
20
Q

What is an example of process control in an OS System Calls

A
  • Create/terminate a process
  • Load and execute
  • Get/Set process attributes
  • Allocate and free memory
21
Q

What is an example of file management in an OS System Calls

A
  • Create/delete files
  • Open Close Files
  • Read, Write, Reposition
  • Get file attributes
22
Q

What is an example of device management in an OS System Calls

A
  • Request/Release a device
  • Read, Write, Reposition
  • Get/Set device attributes
  • Logically attach or detach devices
23
Q

What is an example of information maintenance in an OS System Calls

A
  • Get time or set time/ date
  • Get/Set system data
  • Get/Set process file or device attributes
24
Q

What is an example of communications in an OS System Calls

A
  • Cread/delete communication connections
  • Send receive messages
  • Transfer status information
  • Attach or detach remote devices
25
Q

What is an example of Protection in an OS System Calls

A
  • Get file permissions
  • Set file permissions
26
Q

What are the process states?

A
  • Running
  • Ready
  • Blocked
27
Q

What is the running state of a process

A

It’s where a process is running on a processor. Instructions are currently being executed

28
Q

What is the Ready state of a process

A

It’s whe the process is waiting to be assigned to a processor

29
Q

What is the Blocked state of a process

A

It’s where the process is waiting on some event to happen. Ex: an IO Request