Exam 23: Concurrency
Exam 1: Introduction to Computers and Java42 Questions
Exam 2: Introduction to Java Applications34 Questions
Exam 3: Introduction to Classes and Objects34 Questions
Exam 4: Control Statements: Part 142 Questions
Exam 5: Control Statements: Part 227 Questions
Exam 6: Methods: a Deeper Look39 Questions
Exam 7: Arrays and Arraylists44 Questions
Exam 8: Classes and Objects: a Deeper Look27 Questions
Exam 9: Object Oriented Programming: Inheritance22 Questions
Exam 10: Object-Oriented Programming: Polymorphism28 Questions
Exam 11: Exception Handling27 Questions
Exam 12: Gui Components: Part 170 Questions
Exam 13: Graphics and Java 2D19 Questions
Exam 14: Strings27 Questions
Exam 15: Files,streams and Object Serialization29 Questions
Exam 16: Generic Collections41 Questions
Exam 17: Lambdas60 Questions
Exam 18: Recursion13 Questions
Exam 19: Searching, Sorting and Big O22 Questions
Exam 20: Generic Classes and Methods15 Questions
Exam 21: Custom Generic Data Structures17 Questions
Exam 23: Concurrency55 Questions
Exam 24: Accessing Databases With Jdbc35 Questions
Exam 25: JavaFX26 Questions
Select questions type
Which of the following is true for a correct producer/consumer relationship with one producer,one consumer,and a 5-cell buffer?
Free
(Multiple Choice)
4.8/5
(36)
Correct Answer:
B
23)2.2.A waiting thread transitions back to the ________ state only when another thread notifies it to continue executing.
Free
(Multiple Choice)
4.8/5
(31)
Correct Answer:
A
The BlockingQueue interface declares which two methods for blocked adding and blocked removing of elements from a circular buffer?
Free
(Multiple Choice)
4.8/5
(41)
Correct Answer:
A
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.
(Multiple Choice)
4.8/5
(36)
The main method executes in the ________ thread of execution.
(Multiple Choice)
4.7/5
(44)
A new thread begins its life cycle by transitioning to the __________ state.
(Multiple Choice)
4.9/5
(35)
In a producer/consumer relationship with a single cell of shared memory,which of the following is true?
(Multiple Choice)
4.9/5
(25)
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
(36)
SwingWorker method ________ executes a long computation in a worker thread.
(Multiple Choice)
4.9/5
(31)
To determine the difference between two Instants,use class Duration's static method ________,which returns a Duration object containing the time difference.
(Multiple Choice)
4.8/5
(40)
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.9/5
(37)
Arrays static method ________ fills an array with values produced by a generator function that receives an int and returns a value of type int,long or double.
(Multiple Choice)
4.8/5
(33)
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)
4.9/5
(28)
An ExecutorService object is created by calling a static method of which class?
(Multiple Choice)
4.9/5
(35)
Two tasks that are operating ________ are executing simultaneously.
(Multiple Choice)
4.7/5
(38)
Showing 1 - 20 of 55
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)