Process Manager Flashcards

1
Q

Process

A

The unit of work in computer system.

Sequence of states, resulting in action of set of instructions on states as they develop.

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

How does OS manage processes?

A

OS maintains a data structure called Process Control Block for each process.

Enables the OS to manage different processes effectively, by saving current state in the Process Control Block, switching between them and reloading certain processes later on.

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

Static part :

A

-Certain amount of space in memory

-A current working directory

-Sources of input and output such as a keyboard, screen and open files

-A connection with another process over a network

-A program (sequence of instructions - inert)

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

Dynamic part:

A

Instructions that make up program

Thread execution

Thread has access to all of resources assigned to task

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

Operating System Overhead

A

Happens when process begins running and stop abruptly to wait for input.

OS has to save or restore the whole state of machine at moment the process stopped running.

Saving and restoring, becomes large part of the computer.

Increasing size of operations makes OS more complex.

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

Multi-threading

A

The OS overhead led to the idea of having number of path of executions through the program at the same time.

Not necessary to save and restore the full state of machine, as using same memory files and device.

Each thread must maintain state info of its own.

Multithreading enables processing of multiple threads at one time, rather than multiple processes.

Multithreading increases performance efficiency and scalability.

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

Type of Threads

A

User Threads
Kernel Threads

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

User Threads

A

Threads that application programmers use in their programs.

Saves overhead on the OS each time thread changes to another. THE OS gives control of the CPU to a process.

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

Kernel Threads

A

Supported within the Kernel of OS.

OS handles all the switching between threads.

Kernel can perform multiple simultaneous tasks.

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

Process, Tasks and Threads

A

OS needs to keep track of processes. Uses “processor control block” to represent different objects.

A processor consists of a task, where resources are allocated one or more threads, or controls paths through code.

Possible to represent one task and variable number of threads. Needs a static part and dynamic part that can grow or shrink.

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