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. How many total time slices will it take to see the first 10KB of the processed file?
A) one
B) two
C) eight
D) ten
Correct Answer:

Verified
Correct Answer:
Verified
Q28: Under what conditions are locks unnecessary for
Q29: Exactly when does a thread finish in
Q31: Given a single CPU and four threads,
Q32: Examine the SharedData class shown below. Suppose
Q34: Stale data occurs in multi-CPU machines when
Q36: "Livelock" occurs when one thread runs continuously,
Q37: Examine the SharedData class shown below. Suppose
Q62: Each thread runs for a short amount
Q70: The _ method does not actually cause
Q79: What is likely to be true when