Chapter 6 Flashcards

1
Q

Which scheduler invoke processes faster. Short-term scheduler Or long-term scheduler

A

Short-term scheduler

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

The task of medium scheduler called what

A

Swap out

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

What is context switch

A

CPU switch to another process, the system must save the state of the current process and load the saved state of new process

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

What is PC

A

Program counter

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

In the execution of parent child processes, who terminates first

A

Child process

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

Does parent child processes share resources

A

There can be 3 cases:

  1. Parent child share all resources
  2. Child share a subset of parent resources
  3. Parent and child share no resources
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Does unix clone a parent process to make its child

A

Yes

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

What are 4 system calls in unix

A
  1. Fork (for process creation, which consists of a copy of the address space of parent)
  2. Exit (for process termination)
  3. Wait
  4. Exec (process overwrite itself with another executable)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is daemon in unix

A

All system processes run in background to provide services to users called daemon.

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

What are the differences between child and parent processes

A
  • Parent ID different
  • Child ID different
  • Child has its own copy of parent’s file descriptor
How well did you know this?
1
Not at all
2
3
4
5
Perfectly