You are on page 1of 3

Assignment 4 – Operating System Fundamentals

1. Which of the following statement is incorrect about ordinary pipes?


a. They are unidirectional.
b. Two-way communication cannot be established.
c. Requires a parent-child relationship to establish communication.
d. None of the above
Ans: (b)
Two-way communication can be established with two ordinary pipes which communicates
in different directions.

2. Named pipes supports which of the following?


a. Bidirectional communication
b. Communication without parent-child relationship
c. Several processes can use named pipes for communication
d. All of the above
Ans: (d)

3. Rearrange the remote procedure call (RPC) activities according to the occurrence
timeline.
p) Instructions are executed on the server according to the parameters
q) The client-side stub locates the server
r) Parameters are unpacked at the server side
s) Parameters are marshalled at the client side
a. q -> r -> s -> p
b. r -> s -> q -> p
c. q -> s -> r -> p
d. p -> r -> s -> q
Ans: (c)
Initially, the client-side stub locates the server. Then the parameters are marshalled at the
client side and sent over to the server. The server receives the massage and unpacks the
marshalled parameters. Finally, the unpacked parameters are used for executing the
instructions.
4. Big-ending and Little-endian system
a. Both stores the most significant byte first
b. Both stores the least significant byte first
c. Stores least significant byte and most significant byte first accordingly
d. Stores most significant byte and least significant byte first accordingly
Ans: (d)
Big-endian system stores the most significant byte first and little-endian system stores the
least significant byte first. The big-endian system is common format in data networking.

5. Select the correct statement.


a. Multiprocess creation is heavy-weight
b. Multithread creation is light-weight
c. Kernels are generally multithreaded
d. All of the above
Ans: (d)

6. Select the incorrect statement.


a. Concurrency is not possible without parallelism
b. A parallel system can perform multiple tasks simultaneously
c. A concurrent system allows multiple tasks to make progress
d. None of the above
Ans: (a)
Concurrency can be achieved without parallelism by allowing the tasks to make progress. In
parallel system, all the tasks will be performed separately but simultaneously.

7. When we have to use same operation on a large set of data, which type of
parallelism will fit the task?
a. Data parallelism
b. Task parallelism
c. Both will work equally well
d. Parallelism will not work
Ans: (a)
Data parallelism is the best fitted for this task as it can divide the overall set of data into
subsets and operate on each simultaneously.
8. In which kind of buffering queue, the sender never has to wait?
a. Zero capacity
b. Bounded capacity
c. Unbounded capacity
d. None of the above
Ans: (c)
Message exchanged by the communicating process reside in a temporary queue. If the
queue has no such bounded length, the sender never has to wait as the sent messages will
be stored in the queue anyway.

9. In which message passing scheme combination we get a rendezvous?


a. Non-blocking sender and blocking receiver
b. Blocking sender and blocking receiver
c. Blocking sender and non-blocking receiver
d. Non-blocking sender and non-blocking receiver
Ans: (b)

10.

A parent may terminate the execution of children processes using the abort ()
system call when
a. Child has exceeded the allocated resources
b. Task assigned to child is no longer required
c. The parent is exiting and the operating system does not allow the child to run
if the parent terminates
d. All of the above
Ans: (d)

You might also like