Question: 6. Fill in the blanks: more active threads try to acquire the same set of locks and are repeatedly is a special case of in

6. Fill in the blanks: more active threads try to acquire the same set of locks and are repeatedly is a special case of in which two or unsuccessful. A. Deadlock, livelock B. Deadlock, resource starvation C. Livelock, resource starvation D. Resource starvation, race conditions 7. What is the output of the following application? package office; import java.util.concurrent.*; public class TpsReport / public void submitReports() { Executorservice service = Executors.newCachedThreadPool; Future bosses = service.submit(0) -> System.out.print("")) service.shutdown(); System.out.print (bosses.get()); public static void main(String[] memo) { new TpsReport ().submitReports()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
