Quiz 3 Flashcards

1
Q

Threads share the same address space with other threads in the same process

a) True

b) False

A

a) True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

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

A

b) Hiding communication latency by using multiple threads for concurrent connections to server replicas

c) using a convenient naming system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

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

A

c) It is possible to process requests concurrently without blocking the entire process

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

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

A

c) Hiding communication latency by using multiple threads to concurrently connect to different replicas and fetch data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

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

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

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

A

b) Stateless server does not keep information about its client

d) Stateful server keeps the state of its client

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

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

A

b) Dealing with redirection policy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

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

a) Inconsistencies of states is reduced

b) Ease of horizontal scaling

c) Server can crash and recover with little overhead.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

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

a) Interoperate between heterogenous platforms

b) Marshalling and Unmarshalling of messages

c) Passing messages between the transport layer and the
application layer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

A protocol must be agreed between the caller and the callee for message passing in RPC to work

a) True

b) False

A

a) True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

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

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

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

A

c) allow a client process execute a function on a remote server process

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

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

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

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

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly