chapter 3 processes Flashcards

1
Q

what is the process and its parts ?

A

a process is a program in execution.
its part : - text section which also called a program code.

  • data section which have global variables
  • stack: which containing a temporary data.
  • current activity : which contains processor registers and counters
  • heap : containing memory dynamically allocated during run time.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

how a program becomes a process ?

A

when executable file loaded into memory.

it started when clicking a command line entry of its name.

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

what are the states of the process ?

A
  • new : being created
  • running : instructions are being executed
  • waiting : the process waiting for event to occur.
  • ready : the process is assigned to a processor .
  • terminated : the process has finished the execution.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what information associated with the process ?

A
  • process state
  • program counter
  • CPU registers
  • CPU scheduling
  • memory management information
  • I/O status information
  • accounting information
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the process scheduler job?

A

It selects process among available processes for next execution.

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

what are scheduling queues ?

A
  • job queues : set of all processes in the system
  • ready queue : set of all processes residing in main memory, ready and waiting to execute.
  • Device queues : set of all processes waiting for an I/o device.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

what are scheduler types?

A
  • short term scheduler : selects which processes should be executed next.
  • long term scheduler : selects which processes should be brought into ready queue.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

what types of processes?

A
  • I/O bound process : spends more time doing I/O than computations, many short CPU bursts.
  • CPU bound process : spends more time doing computations, few very long CPU bursts.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

what is swapping ?

A

Remove process from memory, store on disk, bring back in from disk to continue execution

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

what does context switch do ?

A

When CPU switches to another process, the system must save the state of the old process and load the saved state for the new process via a context switch.

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

what does context time dependent on ?

A

context switch time are highly dependent on hardware.

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

what is identifying and managing the process ?

A

process identifier ( PID)

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

what are process resources sharing options ?

A

Parent and children share all resources .

Children share subset of parent’s resources.

Parent and child share no resources.

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

what are the process execution options ?

A

Parent and children execute at the same time.

Parent waits until children terminate.

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

what does exit() do ?

A

asks the OS to delete it.

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

what does wait() do ?

A

returns status data to the parent from the child.

17
Q

what does abort() do ?

A

it is used by parent to terminate the execution of the children.

18
Q

reasons of aborting the process ?

A
  • child has exceeded allocated resources
  • task assigned to child is no longer required.
  • the parent exits and OS does not allow a child to continue if its parent terminates.
19
Q

Google Chrome Browser is multi process, what are they?

A
  • Browser process manages user interface, disk and network I/O.
  • Renderer process renders web pages.
  • Plug-in process for each type of plug-in.
20
Q

when medium term scheduler added ?

A

If degree of multi programming needs to decrease.

21
Q

what are types of process in the system ?

A
  • independent

- cooperating : which may be affect or being affected by others.

22
Q

what are reasons of cooperating ?

A
  • information sharing
  • convenience
  • modularity
  • computation speed up
23
Q

What are models of IPC ?

A
  • shared memory
    The control is under the user processes.
    issue : providing synchronization mechanism of process actions.
  • message receiving : processes communicating each other from shared variable.
    message size is fixed or variable.
24
Q

what are message passing implementations ?

A
  • direct or indirect.
  • synchronous or asynchronous
  • automatic or explicit buffering.
25
Q

what are Communications in Client-Server Systems ?

A
  • sockets.
  • pipes.
  • remote procedure call.
  • remote method invocation.
26
Q

what is a socket ?

A

It is defined as an endpoint for communication.

terminology : A pair of processes communicating over a network employ of a pair of sockets- one for each process