Processes-Lec.6 Flashcards

1
Q

Process definition SER

A

A program in execution, unit of scheduling, execution and resources.

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

Processes in memory TPSDH

A

Text Section(program code, instructions), Program Counter, Stack(temp. data such as function parameters, return addresses, local variables), Data Selection(global variables), Heap(dynamically allocated memory during process runtime)

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

Process States NRWRT

A

New- process is being created, Ready- process is waiting to be assigned a processor to run, Waiting- process is waiting for some event to occur, Running- Instructions are being executed, Terminated- process has finished execution

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

Process scheduling- involves managing process queues(JQ RQ DQ)

A

Job Queue- set of all processes in system, Ready Queue- set of all processes in main memory ready and waiting to execute, Device Queue- set of processes waiting for an I/O device.

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

Schedulers-Long term and short term

A

Long-term scheduler(job scheduler)- manages which processes enter the ready queue, short-term scheduler(CPU scheduler)- decides which process gets CPU time

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

context switches

A

When CPU switches between processes, it saves the old processes state and loads the new one

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