Deck 11: Process Management and Interprocess Communication in Unix

Full screen (f)
exit full mode
Question
A parent process calling___________system call will be suspended until children processes terminate.

A)wait
B)fork
C)exit
D)exec
Use Space or
up arrow
down arrow
to flip the card.
Question
Cascading termination refers to termination of all child processes before the parent terminates___________  

A)normally
B)abnormally
C)normally or abnormally
D)none of the mentioned
Question
In UNIX, each process is identified by its

A)process control block
B)device queue
C)process identifier
D)none of the mentioned
Question
The child process can___________      

A)be a duplicate of the parent process
B)never be a duplicate of the parent process
C)cannot have another program loaded into it
D)never have another program loaded into it
Question
The child process completes execution, but the parent keeps executing, then the child process is known as___________      

A)orphan
B)zombie
C)body
D)dead
Question
What is Inter process communication?

A)allows processes to communicate and synchronize their actions when using the same address space
B)allows processes to communicate and synchronize their actions without using the same address space
C)allows the processes to only synchronize their actions without communication
D)none of the mentioned
Question
Message passing system allows processes to___________      

A)communicate with one another without resorting to shared data
B)communicate with one another by resorting to shared data
C)share data
D)name the recipient or sender of the message
Question
Which of the following two operations are provided by the IPC facility?

A)write & delete message
B)delete & receive message
C)send & delete message
D)receive & send message
Question
Messages sent by a process___________      

A)have to be of a fixed size
B)have to be a variable size
C)can be fixed or variable sized
D)none of the mentioned
Question
The link between two processes P and Q to send and receive messages is called

A)communication link
B)message-passing link
C)synchronization link
D)all of the mentioned
Question
Which of the following are TRUE for direct communication?

A)a communication link can be associated with n number of process(n = max. number of processes supported by system)
B)a communication link can be associated with exactly two processes
C)exactly n/2 links exist between each pair of processes(n = max. number of processes supported by system)
D)exactly two link exists between each pair of processes
Question
In indirect communication between

A)there is another process r to handle and pass on the messages between p and q
B)there is another machine between the two processes to help communication
C)there is a mailbox to help communication between p and q
D)none of the mentioned
Question
In the non blocking send___________      

A)the sending process keeps sending until the message is received
B)the sending process sends the message and resumes operation
C)the sending process keeps sending until it receives a message
D)none of the mentioned
Question
In the Zero capacity queue___________      

A)the queue can store at least one message
B)the sender blocks until the receiver receives the message
C)the sender keeps sending and the messages don't wait in the queue
D)none of the mentioned
Question
The Zero Capacity queue___________      

A)is referred to as a message system with buffering
B)is referred to as a message system with no buffering
C)is referred to as a link
D)none of the mentioned
Question
Concurrent access to shared data may result in___________

A)data consistency
B)data insecurity
C)data inconsistency
D)none of the mentioned
Question
A situation where several processes access and manipulate the same data concurrently and the outcome of the execution depends on the particular order in which access takes place is called___________

A)data consistency
B)race condition
C)aging
D)starvation
Question
The segment of code in which the process may change common variables, update tables, write into files is known as___________

A)program
B)critical section
C)non - critical section
D)synchronizing
Question
Which of the following conditions must be satisfied to solve the critical section problem?

A)mutual exclusion
B)progress
C)bounded waiting
D)all of the mentioned
Question
Mutual exclusion implies that

A)if a process is executing in its critical section, then no other process must be executing in their critical sections
B)if a process is executing in its critical section, then other processes must be executing in their critical sections
C)if a process is executing in its critical section, then all the resources of the system must be blocked until it finishes execution
D)none of the mentioned
Question
Bounded waiting implies that there exists a bound on the number of times a process is allowed to enter its critical section

A)after a process has made a request to enter its critical section and before the request is granted
B)when another process is in its critical section
C)before a process has made a request to enter its critical section
D)none of the mentioned
Question
A minimum of___________variable(s) is/are required to be shared between processes to solve the critical section problem.

A)one
B)two
C)three
D)four
Question
In the bakery algorithm to solve the critical section problem___________

A)each process is put into a queue and picked up in an ordered manner
B)each process receives a number (may or may not be unique) and the one with the lowest number is served next
C)each process gets a unique number and the one with the highest number is served next
D)each process gets a unique number and the one with the lowest number is served next
Question
An un-interruptible unit is known as

A)single
B)atomic
C)static
D)none of the mentioned
Question
TestAndSet instruction is executed

A)after a particular process
B)periodically
C)atomically
D)none of the mentioned
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/25
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 11: Process Management and Interprocess Communication in Unix
1
A parent process calling___________system call will be suspended until children processes terminate.

A)wait
B)fork
C)exit
D)exec
wait
2
Cascading termination refers to termination of all child processes before the parent terminates___________  

A)normally
B)abnormally
C)normally or abnormally
D)none of the mentioned
normally
3
In UNIX, each process is identified by its

A)process control block
B)device queue
C)process identifier
D)none of the mentioned
process identifier
4
The child process can___________      

A)be a duplicate of the parent process
B)never be a duplicate of the parent process
C)cannot have another program loaded into it
D)never have another program loaded into it
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
5
The child process completes execution, but the parent keeps executing, then the child process is known as___________      

A)orphan
B)zombie
C)body
D)dead
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
6
What is Inter process communication?

A)allows processes to communicate and synchronize their actions when using the same address space
B)allows processes to communicate and synchronize their actions without using the same address space
C)allows the processes to only synchronize their actions without communication
D)none of the mentioned
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
7
Message passing system allows processes to___________      

A)communicate with one another without resorting to shared data
B)communicate with one another by resorting to shared data
C)share data
D)name the recipient or sender of the message
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
8
Which of the following two operations are provided by the IPC facility?

A)write & delete message
B)delete & receive message
C)send & delete message
D)receive & send message
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
9
Messages sent by a process___________      

A)have to be of a fixed size
B)have to be a variable size
C)can be fixed or variable sized
D)none of the mentioned
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
10
The link between two processes P and Q to send and receive messages is called

A)communication link
B)message-passing link
C)synchronization link
D)all of the mentioned
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
11
Which of the following are TRUE for direct communication?

A)a communication link can be associated with n number of process(n = max. number of processes supported by system)
B)a communication link can be associated with exactly two processes
C)exactly n/2 links exist between each pair of processes(n = max. number of processes supported by system)
D)exactly two link exists between each pair of processes
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
12
In indirect communication between

A)there is another process r to handle and pass on the messages between p and q
B)there is another machine between the two processes to help communication
C)there is a mailbox to help communication between p and q
D)none of the mentioned
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
13
In the non blocking send___________      

A)the sending process keeps sending until the message is received
B)the sending process sends the message and resumes operation
C)the sending process keeps sending until it receives a message
D)none of the mentioned
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
14
In the Zero capacity queue___________      

A)the queue can store at least one message
B)the sender blocks until the receiver receives the message
C)the sender keeps sending and the messages don't wait in the queue
D)none of the mentioned
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
15
The Zero Capacity queue___________      

A)is referred to as a message system with buffering
B)is referred to as a message system with no buffering
C)is referred to as a link
D)none of the mentioned
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
16
Concurrent access to shared data may result in___________

A)data consistency
B)data insecurity
C)data inconsistency
D)none of the mentioned
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
17
A situation where several processes access and manipulate the same data concurrently and the outcome of the execution depends on the particular order in which access takes place is called___________

A)data consistency
B)race condition
C)aging
D)starvation
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
18
The segment of code in which the process may change common variables, update tables, write into files is known as___________

A)program
B)critical section
C)non - critical section
D)synchronizing
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
19
Which of the following conditions must be satisfied to solve the critical section problem?

A)mutual exclusion
B)progress
C)bounded waiting
D)all of the mentioned
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
20
Mutual exclusion implies that

A)if a process is executing in its critical section, then no other process must be executing in their critical sections
B)if a process is executing in its critical section, then other processes must be executing in their critical sections
C)if a process is executing in its critical section, then all the resources of the system must be blocked until it finishes execution
D)none of the mentioned
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
21
Bounded waiting implies that there exists a bound on the number of times a process is allowed to enter its critical section

A)after a process has made a request to enter its critical section and before the request is granted
B)when another process is in its critical section
C)before a process has made a request to enter its critical section
D)none of the mentioned
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
22
A minimum of___________variable(s) is/are required to be shared between processes to solve the critical section problem.

A)one
B)two
C)three
D)four
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
23
In the bakery algorithm to solve the critical section problem___________

A)each process is put into a queue and picked up in an ordered manner
B)each process receives a number (may or may not be unique) and the one with the lowest number is served next
C)each process gets a unique number and the one with the highest number is served next
D)each process gets a unique number and the one with the lowest number is served next
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
24
An un-interruptible unit is known as

A)single
B)atomic
C)static
D)none of the mentioned
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
25
TestAndSet instruction is executed

A)after a particular process
B)periodically
C)atomically
D)none of the mentioned
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 25 flashcards in this deck.