DISTRIBUTED COMPUTING ( PLEASE ANSWER WITH THIS POST, can not post mulitple item
ID: 3664742 • Letter: D
Question
DISTRIBUTED COMPUTING
( PLEASE ANSWER WITH THIS POST, can not post mulitple items. THANK YOU FOR YOUR HELP!)
SECTION - A
1. In distributed system each processor has its own
local memory
clock
both (a) and (b)
none of the mentioned
2. The first line of HTTP request message is called ____
Request line
Header line
Status line
Entity line
3. Processes on the remote systems are identified by
host ID
host name and identifier
identifier
process ID
4. Which one of the following is not true?
multiple hostnames may correspond to a single IP address
a single hostname may correspond to many IP addresses
a single hostname may correspond to a single IP address
none of the mentioned
5. If a server has no clue about where to find the address for a hostname then
server asks to the root server
server asks to its adjacent server
request is not processed
none of the mentioned
6. TCP/IP model does not have ______ layer but OSI model have this layer.
session layer
presentation layer
application layer
both (a) and (b)
7. Which address is used in an internet employing the TCP/IP protocols?
physical address and logical address
port address
specific address
all of the mentioned
8. In the network HTTP resources are located by
uniform resource identifier
unique resource locator
unique resource identifier
none of the mentioned
9. In HTTP pipelining
a) Multiple HTTP requests are sent on a single TCP connection without waiting for the corresponding responses
b) Multiple HTTP requests cannot be sent on a single TCP connection
c) Multiple HTTP requests are sent in a queue on a single TCP connection
d) None of the mentioned
An endpoint of an inter-process communication flow across a computer network is called
a) socket
b) pipe
c) port
d) none of the mentioned
This section includes short answer Questions:
Why is event synchronization so important for inter-process communication in distributed computing? Give two examples to illustrate your point. What would be the consequence(s) if the synchronization is not programmed properly?
Look up the online API specification for Java
Choose the link for the Runnable interface and then the Thread class. Browse each carefully, reading the specifications for the methods of each.
According to the specification, which of the two, Runnable interface and Thread class, is preferred if you only intend to implement the run method? Why?
What does the Thread class method sleep do? Write a Java statement(s) that appears in the code for a thread to suspend the execution of the execution of the thread for 5 seconds.
What does the Thread class method activeCount do? What should the method return in a program where three threads are spawned?
How do you use a Runnable interface to create a Thread? Explain.
Naming
Complete the following table:
IP address
Domain name
Class of address (A-E)
Net ID (in dotted decimal notation)
Host ID )in dotted decimal notation)
18.181.0.31
129.65.2.119
224.0.1.24
HINT: use nslookup in command prompt to look for the Domain Name corresponding to IP address.
Consider this URI: http://www.someSite.org:8081/foo/index.htm
What is the protocol specified?
What is the host name of the service?
What is the port number of the process that provides the service?
Where is the document located?
Process A sends a single message to process B using connectionless IPC. To do so, A issues a send operation (specifying the message as argument) sometime during its execution, and B issues a receive operation. Suppose the send operation is blocking and the receive operation is non-blocking. Draw an event diagram (not sequence diagram) for each of the following scenario: (20 points)
Process A issues its send operation prior to process B issues its receive operation.
Process B issues its receive operation prior to process A issues its send operation.
In the context of IPC:
a) What is meant by data marshaling? (There are two components to data marshalling; name and describe each.) Why is it necessary?
b) What is meant by object serialization?
c) How does the two components of data marshalling apply to (i) an array of integers, and (ii) an object? (Describe in general terms what needs to be flattened and encoded in each case.)
R: 221 USC-ISI.ARPA Service closing transmission channel
Use a sequence diagram to describe the interactions among the participating processes.
IP address
Domain name
Class of address (A-E)
Net ID (in dotted decimal notation)
Host ID )in dotted decimal notation)
18.181.0.31
129.65.2.119
204.198.135.62
224.0.1.24
Explanation / Answer
SECTION – A
Why is event synchronization so important for inter-process communication:: As we know synchronization stops multiple thread inter into the monitor to modify resources. It allow one thread at a time and rest of the threads will wait.
If synchronization not programmed properly then there might be possibility that one thread will modify a resource and other thread will read the same resource on particular time and it leads to wrong results.
When you extends Thread class, each of your thread creates unique object and associate with it. When you implements Runnable, it shares the same object to multiple threads.
Thread class method sleep allow thread to wait till specified millisecond. i.e wait (1000);
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.