Question
PLESE ANSWER THE FOLLOWING Page 39: Exercise 1a: Distributed Computing Consider distributed computing as defined in this chapter. For each of the following activities, determine
PLESE ANSWER THE FOLLOWING
Page 39: Exercise 1a: Distributed Computing
Consider distributed computing as defined in this chapter. For each of the following activities, determine and explain whether it is an example of distributed computing:
Using Excel on a stand-alone personal computer
Web Surfing
Instant messaging
Compiling and testing a Cobol program on a department machine that has no network connection
Using the electronic mail on your departments computer to send a message to yourself
Using Napster.com to download music
Page 40: Exercise 2a: Concurrent Programming
Look up the online API specification for java [java.sun.com, 20]
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 specifications, which two, Runnable interface or the Thread class, is preferred if you only intend to implement the run method? Why?
What does the Thread class method sleep do? Write the Java statement (s) that appear in the code for a thread to suspend 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?
The Thread class method stop is said to be deprecated. What is meant by a deprecated method?
How many methods are there in the Runnable interface? Name each.
How do you use the Runnable interface to create a thread? Explain.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started