DOS CT2 Set C Answer Key
DOS CT2 Set C Answer Key
DOS CT2 Set C Answer Key
Mode of Exam
College of Engineering and Technology
School of Computing OFFLINE
DEPARTMENT OF COMPUTING TECHNOLOGIES
SRM Nagar, Kattankulathur – 603203, Chengalpattu District,
Academic Year: 2023 (ODD SET - C
Part - A
(1*10 = 10 Marks)
Instructions: Answer all
Q. Question Marks BL CO PO PI
No Code
1 The difference in time values of two clocks is called------ 1 L1 3 3 1.6.1
a) Clock drift
b) Clock skew
c) Clock Synchronization
d) Application Software
Answer: a) Middleware
4 The _______ calls certain procedures on remote systems 1 L1 2 2 1.6.1
and is used to perform synchronous or asynchronous
interactions between systems.
a) Procedure
b) RPC
c) Message Oriented
d) DB
Answer: b) RPC
5 The local operating system on the server machine passes 1 L1 2 2 1.6.1
the incoming packets to the
a) Server Stub
b) Client Stub
c) Client Operating system
d) Binding Agent
8 If timestamps of two events are same, then the events are 1 L1 3 3 1.6.1
_____
a) concurrent
b) non-concurrent
c) monotonic
d) non-monotonic
Answer: a) concurrent
19 Infer the concept of Message Passing and its related issues? 5 L 3 3 1.6.1
Message Passing provides a mechanism to allow processes to communicate and 2
to synchronize their actions without sharing the same address space. For
example − chat programs on World Wide Web. Now let us discuss the message
passing step by step. Messages sent by a process can be either fixed or variable
size.
Issues with IPC by message passing in distributed systems include
synchronization issues in blocking send, failure handling challenges, buffering
problems, network latency, delays and dropped messages, deadlocks, race
conditions and security concerns.
20 Discuss in detail about Nested Transaction with any real time scenario. 5 L 3 3 1.6.1
3
• The top-level transaction may fork off children that run in
parallel with one another, on different machines, to gain performance
or simplify programming.
• Each of these children may also execute one or more
sub transactions, or fork off its own children.
• Provide a natural way of distributing a transaction across multiple
machines.
• Follow a logical division of the work of the original transaction.
For example, a transaction for planning a trip by which three different
flights need to be reserved can be logically split up into three sub
transactions. Each of these sub transactions can be managed separately and
independent of the other two.
Deadlock Prevention:
Designing the system in a way that deadlock become impossible.
Prevention is different from avoidance because no runtime testing
(dynamically) of potential allocations need be performed.
Prevent the one of the four necessary conditions:
Mutual exclusion condition
Hold and wait condition
No-Preemption condition
Circular-wait condition
Mutual Exclusion
• Unfortunately it is not possible to prevent deadlocks by denying
mutual-exclusion.
• Cannot be prevented for all resources. Some resources are
intrinsically non-sharable for example printer, and some are
sharable like CPU.
Or
23 Explain in detail about the Remote Procedure Call with neat diagram. 1 L 2 2 1.6.1
1984: Birrell & Nelson 0 2
– Mechanism to call procedures on other machines
Goal: Make distributed computing look like centralized computing
– Aims at hiding most of the intricacies of message passing,
and ideal for client-server applications
– Allow remote services to be called as procedures
– Transparency with regard to location, implementation,
language
• A remote procedure call makes a call to a remote service look
like a local call
– RPC makes transparent whether server is local or remote
– RPC allows applications to become distributed
transparently
– RPC makes architecture of remote machine transparent
Possible issues:
• Calling and called procedures run on different machines
• They execute in different address spaces
• Parameters and results have to be passed, it can be complicated
when the machines are not identical.
– How do you represent integers – big-endian little-endian
• Either or both machines can crash and each of the possible
failures causes different problems.
Client and Server Stub
* Performance Indicators are available separately for Computer Science and Engineering in AICTE
examination reforms policy.