InterviewSolution
Saved Bookmarks
| 1. |
How Can I Immediately Block A Thread Even If I Am Using Submit Method And Using A Callable Object? |
|
Answer» If you would like to IMMEDIATELY BLOCK waiting for a task, you can use constructions of the form result = exec.submit(aCallable).GET(); If you would like to immediately block waiting for a task, you can use constructions of the form result = exec.submit(aCallable).get(); |
|