Exam 26: Multithreading
Exam 1: Introduction to Computers and Java24 Questions
Exam 2: Introduction to Java Applications23 Questions
Exam 3: Introduction to Classes and Objects18 Questions
Exam 4: Control Statements: Part 141 Questions
Exam 5: Control Statements: Part 225 Questions
Exam 6: Methods: a Deeper Look42 Questions
Exam 7: Arrays and Arraylists41 Questions
Exam 8: Classes and Objects: a Deeper Look31 Questions
Exam 9: Object Oriented Programming: Inheritance23 Questions
Exam 10: Object-Oriented Programming: Polymorphism25 Questions
Exam 11: Exception Handling28 Questions
Exam 12: Atm Case Study,part 1: Object-Oriented Design With the Uml18 Questions
Exam 13: Atm Case Study,part 2: Implementing an Object-Oriented Design4 Questions
Exam 14: Gui Components: Part 177 Questions
Exam 15: Graphics and Java 2d15 Questions
Exam 16: Strings26 Questions
Exam 17: Files,streams and Object Serialization22 Questions
Exam 18: Recursion14 Questions
Exam 19: Searching, Sorting and Big O14 Questions
Exam 20: Generic Collections41 Questions
Exam 21: Generic Classes and Methods13 Questions
Exam 22: Custom Generic Data Structures16 Questions
Exam 23: Applets and Java Web Start12 Questions
Exam 24: Multimedia: Applets and Applications12 Questions
Exam 25: Gui, Part 225 Questions
Exam 26: Multithreading25 Questions
Exam 27: Networking15 Questions
Exam 28: Accessing Databases With Jdbc35 Questions
Exam 29: Java Server Faces Web Applications15 Questions
Exam 30: Ajax-Enabled Jsf Web Applications7 Questions
Exam 31: Web Services27 Questions
Select questions type
In a producer/consumer relationship,the ________ portion of an application generates data and stores it in a shared object,and the ________ portion of an application reads data from the shared object.
Free
(Multiple Choice)
4.7/5
(48)
Correct Answer:
B
The Callable interface declares this method.
Free
(Multiple Choice)
4.7/5
(35)
Correct Answer:
B
The main method executes in the ________ thread of execution.
Free
(Multiple Choice)
4.8/5
(42)
Correct Answer:
B
Interface ExecutorService provides the ________ method,which returns control to its caller either when all tasks executing in the ExecutorService complete or when the specified timeout elapses.
(Multiple Choice)
4.8/5
(36)
An ExecutorService object is created by calling a static method of which class?
(Multiple Choice)
4.8/5
(40)
A new thread begins its life cycle by transitioning to the __________ state.
(Multiple Choice)
4.8/5
(37)
With timeslicing,each thread is given a limited amount of time,called a __________,to execute on a processor.
(Multiple Choice)
4.8/5
(40)
If a thread calls __________,then every thread waiting for the object becomes eligible to acquire the lock.
(Multiple Choice)
4.7/5
(29)
When using Java's built-in monitors,every object has a(n)________ or a(n)________ that the monitor ensures is held by a maximum of only one thread at any time.
(Multiple Choice)
4.9/5
(44)
The preferred means of creating multithreaded Java applications is by implementing the ________ interface.An object of a class that implements this interface represents a task to perform.
(Multiple Choice)
4.8/5
(38)
When a thread executing a synchronized statement (or method)completes or satisfies the condition on which another thread may be waiting,it can call Object method ________ or ________ to allow a waiting thread or all waiting threads to transition to the runnable state again.
(Multiple Choice)
4.8/5
(39)
When a __________ method or block is running on an object,the object is locked so no other such method can run on that object at the same time.
(Multiple Choice)
5.0/5
(31)
In a producer/consumer relationship with a single cell of shared memory,which of the following is true?
(Multiple Choice)
4.8/5
(37)
Which one of the following statements is true with regard to a producer/consumer relationship with one producer and one consumer?
(Multiple Choice)
4.8/5
(40)
In a producer/consumer relationship,when a consumer finds the buffer empty or finds that the previous data has already been read,the consumer should call __________.
(Multiple Choice)
4.8/5
(44)
The BlockingQueue interface declares which two methods for blocked adding and blocked removing of elements from a circular buffer?
(Multiple Choice)
4.9/5
(34)
When a thread obtains the monitor lock on an object,then determines that it cannot continue with its task on that object until some condition is satisfied,the thread can call Object method ________;this releases the monitor lock on the object,and transitions the thread waits to the waiting state.
(Multiple Choice)
4.8/5
(42)
Showing 1 - 20 of 25
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)