約153件1ページ目

日本語のみで絞り込む

2024/10/10 -Learn how Java's ExecutorService.submit() method simplifies task execution, manages multiple threads, and returns Future objects for result ...

2025/9/18 -The submit() and invokeAll() methods return an object or a collection of objects of type Future, which allows us to get the result of a task's ...

2010/10/14 -How should I choose between ExecutorService's submit or execute, if the returned value is not my concern? If I test both, I didn't see any ...

2018/12/13 -1. ExecutorService. 1.1 A classic ExecutorService example to create a thread pool with 5 threads, submit two tasks, get the result from Future ...

2025/7/15 -The ExecutorService interface extends Executor by adding methods that help manage and control the execution of threads.

2023/2/16 -Here is a Java ExecutorService submit() example: Future future = executorService.submit(new Runnable() { public void run() { System.out ...

Submits a value-returning task for execution and returns a Future representing the pending results of the task. The Future's get method will return the task's ...

Java Concurrency/Multithreading Tutorial with Examples for Dummies - java-concurrency-examples/java-executors-and-thread-pool/src/ExecutorsExample.java at ...

2024/9/9 -The ExecutorService.execute() and submit() methods serve the purpose of submitting tasks to an ExecutorService object. The execute() method ...

2024/6/13 -When you use submit(Callable<T> task) , the ExecutorService returns a Future object. This Future object acts as a placeholder for the eventual ...