Is thread starvation deadlock happening here in the code?
问题 //code taken from java concurrency in practice package net.jcip.examples; import java.util.concurrent.*; public class ThreadDeadlock { ExecutorService exec = Executors.newSingleThreadExecutor(); public class LoadFileTask implements Callable<String> { private final String fileName; public LoadFileTask(String fileName) { this.fileName = fileName; } public String call() throws Exception { // Here's where we would actually read the file return ""; } } public class RenderPageTask implements