Sunteți pe pagina 1din 2

DISTRIBUTED SYSTEM

QUIZ -2
BSCS-7TH (C)
Department: CS & IT
Course Instructor: Ms. Maryam Total Marks: 10

Instructions:
Name: __________________
1. Take Care of Time Management.
Roll No: ________________ 2. Manage your time don’t give irrelevant details. Just write to the point,
otherwise you will not be able to attempt complete paper.
Time Allowed: 20 Minutes
3. Explain with diagrams where necessary.

Q1: Give the answer of the following questions (5*2=10)


1. Suppose that you could make use of only transient asynchronous communication
primitives, including only an asynchronous receive primitive. How would you implement
primitives for transient synchronous communication?
Solution: Block. Constantly poll, waiting for the message
2. Socket were deemed insufficient for two reasons. Mention those reason.
Solution:
First, they were at the wrong level of abstraction by supporting only simple send
and receive primitives. Second, sockets had been designed to communicate across
networks using general-purpose protocol stacks such as TCPIIP.
3. Differentiate between stub and driver.
Solution: when input is present and want to perform function stub will be needed.
When function is active and input is needed.
4. Differentiate between MPI-ssend and MPI-issend.
Solution:

Department of Computer Sciences & Information Technology, Superior University, Lahore 1


5. Write type of communication of given scenario.

 Good Luck 

Department of Computer Sciences & Information Technology, Superior University, Lahore 2

S-ar putea să vă placă și