Multiple Choice
Suppose run1 and run2 are objects of the class MyRunnable, which implements the Runnable interface. What is the result of the following calls? run1.run() ;
Run2.run() ;
A) run1 and run2 execute as independent threads.
B) Syntax error
C) Only run1 executes as an independent thread.
D) run1 and run2 run sequentially, not as independent threads.
Correct Answer:

Verified
Correct Answer:
Verified
Q12: Class MyClass has a single ReentrantLock object,
Q35: a(n. _ object is used to control
Q41: What happens if we try to start
Q49: Class MyClass has two ReentrantLock objects, myLock1
Q73: Consider an old fashioned telephone booth that
Q74: Assume two threads share a BankAccount object
Q75: Suppose thread one is downloading a 800KB
Q78: Suppose thread one is downloading a 800KB
Q80: Suppose thread one is downloading a 800KB
Q81: Examine the SharedData class shown below. Suppose