Services
Discover
Homeschooling
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
Big Java Late Objects
Quiz 20: Multithreading
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 21
Multiple Choice
In the initial release of the Java library, the Thread class had a stop method to terminate a thread. However, that method is now _______________
Question 22
Multiple Choice
Which argument(s) present(s) the best case(s) for extending the Thread class rather than using the Runnable interface in conjunction with a thread pool? I Thread sub-classes will all execute independently II Runnable objects will waste more system resources III Thread sub-classes can execute faster on a single CPU than Runnable objects
Question 23
Multiple Choice
Insert the statement that would start the following thread. Thread firstThread = new Thread(myRunnable) ; ____________________
Question 24
Multiple Choice
What course of action should be followed when a thread has been interrupted?
Question 25
Multiple Choice
A(n) ____ uses a small number of threads to execute a large number of runnables.
Question 26
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?
Question 27
Multiple Choice
Which of the following definitely indicates that a thread has been interrupted by another thread? I The run method has completed II The method Thread.interrupted returns true III The run method catches an InterruptedException