Processes and OS Flashcards

1
Q

What are the 4 Operating Subsystem Managers?

A

Processor Manager
Memory Manager
Device Manager
File Manager

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

What is the memory manager’s main job?

A

It’s in charge of main memory

It acts as a go-between between processes and memory

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

What is the processor manager’s main job?

A

Decides how to allocate CPU time

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

What is the device manager’s main job?

A

Monitors control unit + all devices

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

What is the file manager’s main job?

A

Keeps track of all files in the system

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

What tasks does the Memory Manager perform?

A
Preserve+Protect memory occupied by OS
Check validity of requests for memory
Allocate memory areas that aren't in use
For multi-user system, keep track of which users are in which memory areas
Deallocate memory when not in use
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What tasks does the Processor Manager perform?

A

Creates processes for new tasks
Performs initialisation of new processes
Keeps track of the statuses of processes
Assigns processes to the CPU when available
Changes process states as events occur
Handles process termination on end or quit
Handles inter-process communication
Manages process queues and prioritisation

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

What tasks does the Device Manager perform?

A

Allocates system devices (drives, printers, etc.) in accordance to system’s sheculing policy
Deals with multiple requests for the same device
Communicates with devices during operation
Deallocates device when no longer required

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

What tasks does the File Manager perform?

A

Organises all files (data, compilers, programs, etc.) into directory structures
Manages location of files on disk
Enforces restrictions on file access
Deals with standard file operations (read, write, etc.)

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

How are standard file operations usually performed when programming?

A

Through system calls

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

What’s the difference between a program and a process?

A

A program is the written code, it is static.

A process is the executing version of the program, it is dynamic.

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

What things do PCBs (Process Control Blocks) contain?

A
Process ID
User ID of process owner
Process State
Memory Position
Accounting Stats (time used, etc.)
Resources Allocated (files, devices, etc.)
Register Values
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are the 3 process states?

A

Running
Ready
Waiting/Blocked

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

What does it mean for a process to be in the running state?

A

It is currently on the CPU

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

What does it mean for a process to be in the ready state?

A

It is able to run but not currently on the CPU

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

What does it mean for a process to be in the waiting/blocked state?

A

It is unable to continue (usually waiting for I/O or a system call)