Week 2: Concepts and Structures Flashcards

1
Q

What is a process?

A
  • A process is an instance of a program that is executed
  • A process is an active entity
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are interrupts?

A
  • The process of the processor stopping what it’s doing and executes a specific interrupt routine
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What part of the system is responsible for the generation of the interrupts at regular intervals?

A

The clock

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

What are the regular clock interrupts used for?

A

To transfer from a running process back to the operating system

the OS can then save the current process information and swap to another process (new or old)

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

What is privileged mode?

A

It is when the operating system has access to all instructions and resources

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

What is user mode?

A

It is when the operating system has access to a limited amount of instructions and resources

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

What is a file?

A

A collection of information

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

What is a folder?

A

A special type of file that holds the names of the files and groups them together

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

What is the purpose of System Calls?

A

To provide an interface between a process and the operating system

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

What are the services of System calls?

A
  • Process control: create, terminate, wait
  • File manipulation: create, delete, open, close, read, write
  • Device manipulation: allocate, deallocate, read, write
  • Information maintenance: set/get date/time, user info
  • Communications: create/delete connection, send, receive
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the layered structure of the operating system?

A

It is a structure that has a number of layers that can only invoke operations on the lower layers. These layers are:
0. Hardware
1. CPU scheduling
2. Memory management
3. Device drivers
4. Buffering for I/O devices
5. User programs

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

What are the main device types?

A

Block devices: Read and write data in blocks
Character devices: Read and write data in single bytes/characters

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

What is CLI foreground?

A

The instance when the screen is locked until a command finishes

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

What is CLI background?

A

The instance when the user can type while a command is running

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