Multiple Choice
Suppose thread one is downloading a 800KB file while another thread is processing the same file on a single CPU machine. Suppose further that one time slice allows the first thread to download about 10KB and that the second thread can process 10KB of the file in one time slice. Approximately how does the time to complete the entire job compare to having a single thread do the work?
A) The threaded way will be twice as fast.
B) The threaded way will be twice as slow.
C) The time depends heavily on the thread scheduler.
D) The ways will take about the same time.
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
Q79: Suppose run1 and run2 are objects of
Q81: Examine the SharedData class shown below. Suppose