Quiz 2 Flashcards

1
Q

Operating systems support multi-programming by keeping track of processes and their relevant information using _______

A

Process Control Block

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

What is saved on a context switch between processes

A
  • program counter
  • general purpose registers
  • process state
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

In Unix, which system call creates the new process

A

fork

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

____ is dynamically allocated memory to a process during its run time.

A

heap section

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

T/F: two processes can be executing the same program

A

true

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

T/F: The transition of a process P from running to terminated can be caused by P itself

A

True

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

Indicate which PCB fields may change during a process’s lifetime.

A
  • children
  • parent
  • process_state
  • cpu_state
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Indicate which PCB fields may change while a process is in the running state

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

a process at level in i in the process creation hierarchy can have ___ link(s) to processes at the next higher level i-1

A

1

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

T/F: When a new process P is created, the scheduler could select P to run next

A

True

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

T/F: When a child exits, a SIGCHILD signal is sent to the child process.

A

False

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

T/F: A child process may call waitpid() on its siblings without error

A

False

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

When an interrupt is received while CPU is executing a program, the CPU

A

breaks the normal sequence of execution of instruction

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

An interrupt transfers the control to an ___ to handle the interrupt before the control is transferred back again to the main program.

A

interrupt service routine

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

the __ system call blocks the parent process till the child process is terminated/completed

A

wait()

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