Quiz 3 Flashcards
Threads share the same address space with other threads in the same process
a) True
b) False
a) True
Distribution transparency in multithreaded clients can be achieved by:
a) Allowing a multithreaded server to communicate with the client
b) Hiding communication latency by using multiple threads for concurrent connections to server replicas
c) using a convenient naming system
b) Hiding communication latency by using multiple threads for concurrent connections to server replicas
c) using a convenient naming system
One reason to use a multi-threading model in distributed environment is that
a) It makes redirection policy easier for the server
b) It is less efficient to perform thread switch than process switch
c) It is possible to process requests concurrently without blocking the entire process
c) It is possible to process requests concurrently without blocking the entire process
One main use of multithreading in client systems is:
a) Increasing the capacity of clients to store shared data locally
b) Redirecting clients to nearby replicas by using multiple threads
c) Hiding communication latency by using multiple threads to concurrently connect to different replicas and fetch data
c) Hiding communication latency by using multiple threads to concurrently connect to different replicas and fetch data
An iterative server implies that:
a) The server can accept multiple connections and process them all at once
b) The server can accept multiple connections and then delegate them to different threads
c) The server can accept only one request at a time and can only accept new connections when it is done with processing the request
c) The server can accept only one request at a time and can only accept new connection when it is done with processing the request
Which of these statements about stateful and stateless servers are correct?
a) Stateful server does not keep the state of its client
b) Stateless server does not keep information about its client
c) Stateless server keeps information about its client
d) Stateful server keeps the state of its client
b) Stateless server does not keep information about its client
d) Stateful server keeps the state of its client
The main issue with scaling in WAN is:
a) Dealing with the cluster configurations
b) Dealing with redirection policy
c) Dealing with the number of server cluster replicas
b) Dealing with redirection policy
Some benefits of stateless server is:
a) Inconsistencies of states is reduced
b) Ease of horizontal scaling
c) Server can crash and recover with little overhead.
a) Inconsistencies of states is reduced
b) Ease of horizontal scaling
c) Server can crash and recover with little overhead.
Middleware layer in distributed systems can achieve the following:
a) Interoperate between heterogenous platforms
b) Marshalling and Unmarshalling of messages
c) Passing messages between the transport layer and the
application layer
a) Interoperate between heterogenous platforms
b) Marshalling and Unmarshalling of messages
c) Passing messages between the transport layer and the
application layer
A protocol must be agreed between the caller and the callee for message passing in RPC to work
a) True
b) False
a) True
Issues in Remote Procedure Call include:
a) Byte ordering on the memories may be different because the
hosts architectures in a distributed environment may be
different.
b) Access transparency because communication is hidden to
processes
c) The processes operate in different memory address spaces in
their respective hosts
a) Byte ordering on the memories may be different because the
hosts architectures in a distributed environment may be
different.
c) The processes operate in different memory address spaces in
their respective hosts
The main idea behind RPC is to:
a) send messages via TCP to a remote process
b) allow a client process call its own function and forward the results to the server
c) allow a client process execute a function on a remote server process
c) allow a client process execute a function on a remote server process
A RPC is an example of:
a) Transient and asynchronous communication
b) Persistent and synchronous communication
c) Persistent and asynchronous communication
d) Transient and synchronous communication
d) Transient and synchronous communication
Transient Communication:
In transient communication, the message must be delivered immediately, and if the receiver is not ready, the message is lost. RPC fits this model because the procedure call occurs in real-time, and both the client and server must be available during the call.
Synchronous Communication:
In synchronous communication, the sender waits for the receiver to acknowledge receipt of the message before continuing. RPC is synchronous because the client waits for the server to complete the requested procedure and return the result before the client can proceed with its execution.
Some reasons for migrating code are to:
a) Achieve flexibility by the client through dynamic download of the implementation of server-side interface.
b) Reduce communication latency by processing data close to where the data reside.
c) achieve performance by distributing load where processes from heavily loaded machine are moved to lightly loaded machines.
d) Improve availability of server to their clients.
a) Achieve flexibility by the client through dynamic download of the implementation of server-side interface.
b) Reduce communication latency by processing data close to where the data reside.
c) achieve performance by distributing load where processes from heavily loaded machine are moved to lightly loaded machines.