Tagged articles
callable
46 articles · Page 1 of 1
The article explains how SpringBoot’s servlet‑async support—using Callable, WebAsyncTask, and DeferredResult—can release Tomcat’s request threads, configure a custom thread pool, and dramatically increase request throughput, while outlining when async is appropriate and the trade‑offs involved.
SpringBootThreadPoolasync
0 likes · 10 min read

This article explains how Spring Boot supports asynchronous request handling using Servlet 3.0 features, detailing four implementation approaches—Callable, WebAsyncTask, DeferredResult, and thread‑pool configuration—while outlining when async processing improves throughput and how to apply it effectively.
BackendSpringBootThreadPool
0 likes · 10 min read

This article explains how Spring Boot handles asynchronous HTTP requests using Callable, WebAsyncTask, and DeferredResult, compares their processing flows, shows how to configure a custom thread pool, and outlines when asynchronous handling improves throughput.
Spring BootThreadPoolasync
0 likes · 10 min read

This article explains how Spring Boot leverages Servlet 3.0 asynchronous processing with four approaches—AsyncContext, Callable, WebAsyncTask, and DeferredResult—detailing their implementation, thread‑pool configuration, and when async endpoints truly boost throughput.
Spring BootThreadPoolasynchronous
0 likes · 13 min read

This article explains how Spring Boot supports asynchronous request processing, comparing pre‑Servlet 3.0 synchronous handling with post‑Servlet 3.0 async features, and demonstrates four implementation approaches—Callable, WebAsyncTask, DeferredResult, and thread‑pool configuration—while outlining when asynchronous requests improve throughput and how to manage their lifecycle.
Spring Bootasynchronouscallable
0 likes · 10 min read

This article explains how Spring Boot supports asynchronous request handling after Servlet 3.0, compares four async mechanisms—AsyncContext, Callable, WebAsyncTask, and DeferredResult—provides code examples for each, discusses thread‑pool configuration, and outlines when asynchronous processing improves throughput.
Spring BootThreadPoolasynchronous
0 likes · 11 min read

This article explains how to implement asynchronous request handling in Spring Boot using four approaches—AsyncContext, Callable, WebAsyncTask, and DeferredResult—detailing their mechanisms, code examples, thread pool configuration, and when to choose async processing to improve throughput.
Spring BootThreadPoolasynchronous
0 likes · 10 min read

This article explains how to use Spring Boot's asynchronous request handling with Callable, WebAsyncTask, and DeferredResult, compares their processing flows, shows how to configure a custom thread pool, and discusses when asynchronous endpoints improve throughput in backend services.
Spring BootThreadPoolasync
0 likes · 9 min read

The article explains how SpringBoot’s asynchronous request handling—using Callable, WebAsyncTask, and DeferredResult with a custom thread pool—can boost API throughput up to ten times compared to synchronous processing, while detailing the internal flow, configuration steps, and scenarios where async is beneficial.
SpringBootThreadPoolasync
0 likes · 9 min read

This article explains how to implement asynchronous request handling in Spring Boot using Callable, WebAsyncTask, and DeferredResult, detailing their processing flow, configuration of thread pools, and scenarios where async requests improve throughput while outlining potential trade‑offs.
Spring BootThreadPoolasync
0 likes · 10 min read

This article explains PHP's is_callable() function, its single‑ and two‑argument usage, and demonstrates with code examples how to check whether a function like add() or a class method such as Math::multiply() is callable before invoking it.
FunctionTutorialcallable
0 likes · 3 min read

This article explores four Java asynchronous programming approaches—Future with Callable, CompletableFuture, and FutureTask—detailing their principles, usage patterns, code examples, and how to retrieve results from thread pools, helping developers improve performance for tasks like aggregating order and fee summaries.
CompletableFutureFutureFutureTask
0 likes · 12 min read

This article explains how to improve backend performance by fetching independent report data concurrently using Java's Future, Callable, CompletableFuture, and FutureTask classes, provides code examples for each approach, and compares their principles, usage patterns, and cancellation capabilities.
CompletableFutureConcurrencyFuture
0 likes · 9 min read

This article explains PHP’s is_callable() function, detailing its purpose, parameter options, and how to use it to verify whether functions or class methods are callable, accompanied by clear code examples demonstrating checks on a simple function and a class method.
BackendFunctionTutorial
0 likes · 4 min read

This article explains how Spring Boot supports asynchronous request handling after Servlet 3.0, demonstrates three practical approaches—Callable, WebAsyncTask, and DeferredResult—with code examples, shows how to configure a custom thread pool, and discusses when asynchronous processing improves throughput.
Spring BootThreadPoolcallable
0 likes · 10 min read

This article explains how Spring Boot can handle HTTP requests asynchronously using Callable, WebAsyncTask, and DeferredResult, detailing the underlying servlet workflow, thread‑pool configuration, and when asynchronous processing truly improves throughput versus CPU‑bound workloads.
ServletSpring BootThreadPool
0 likes · 12 min read

This article explains how to implement asynchronous request handling in Spring Boot using four approaches—AsyncContext, Callable, WebAsyncTask, and DeferredResult—detailing their mechanisms, code examples, thread pool configuration, and when to apply asynchronous processing to improve throughput.
Spring BootThreadPoolcallable
0 likes · 10 min read

This article explains how Spring Boot supports asynchronous request processing using Servlet 3.0 features and four approaches—AsyncContext, Callable, WebAsyncTask, and DeferredResult—provides code examples, thread‑pool configuration, and guidance on when to apply async handling to improve throughput.
JavaSpring Bootasynchronous
0 likes · 9 min read

This article explains how to implement asynchronous request handling in Spring Boot using four approaches—AsyncContext, Callable, WebAsyncTask, and DeferredResult—detailing their execution flow, configuration of thread pools, and scenarios where async processing improves throughput.
JavaSpring Bootasync
0 likes · 10 min read

This article explains how to use PHP's is_callable() function to determine whether a given function, method, class constructor, or static method can be invoked, demonstrates the syntax with a complete example, and shows the expected output for both callable and non‑callable identifiers.
BackendFunctionPHP
0 likes · 4 min read

The article clarifies Java processes and threads using a game analogy, then demonstrates three thread‑creation techniques—extending Thread, implementing Runnable, and implementing Callable with FutureTask—while covering run vs start, thread control methods such as sleep, join, and daemon settings.
JavaMultithreadingRunnable
0 likes · 9 min read

This article explains the fundamental concepts of processes and threads, uses a gaming analogy to illustrate their relationship, and details three ways to create threads in Java—extending Thread, implementing Runnable, and implementing Callable—along with common thread control methods such as sleep, join, and setDaemon.
ConcurrencyJavaRunnable
0 likes · 9 min read

This article explains PHP's is_callable() function, describing its purpose, parameter options, and how to use it to verify the callability of functions and class methods, accompanied by clear code examples and a discussion of its benefits for robust, maintainable code.
BackendFunctionPHP
0 likes · 5 min read

This guide explains why asynchronous request interfaces are essential for high‑concurrency Spring Boot applications, outlines their advantages and typical use cases, and provides step‑by‑step code examples for DeferredResult, Callable, ResponseBodyEmitter, StreamingResponseBody, and reactive Mono implementations.
Asynchronous APIReactive MonoSpring Boot
0 likes · 13 min read

This article explains the differences between std::function and std::invoke in C++, shows how std::function can wrap callable objects such as function pointers, and demonstrates using std::invoke to call various callable types—including free functions and member functions—through clear code examples.
C++callablestd::function
0 likes · 3 min read


转转QAMar 9, 2023 · Backend Development
This article explains why and how to use asynchronous processing in Servlet 3.0 and Spring MVC, compares four implementation approaches (no return value, Callable, WebAsyncTask, DeferredResult), provides detailed code examples, and demonstrates a real‑world use case for decoupling long‑running tasks.
Servlet 3.0Spring MVCcallable
0 likes · 22 min read

This article demonstrates how to implement asynchronous request processing in Spring MVC using Callable and DeferredResult, including setup of a base module with ResponseMsg, creating blocking and async controllers, managing task queues, and handling timeouts and completions with practical code examples.
JavaSpring MVCasynchronous
0 likes · 34 min read

This article explains why creating threads repeatedly wastes resources, introduces Java's ExecutorService thread pool, details its configuration parameters, demonstrates how to create and use fixed thread pools with Runnable and Callable tasks, shows proper shutdown, and highlights common pitfalls with Future.get.
ConcurrencyExecutorServiceFuture
0 likes · 9 min read

This article explains how to create threads using Runnable or Thread, introduces the Callable and Future interfaces introduced in Java SE 5.0, compares them, shows how to use ExecutorService methods, and demonstrates retrieving results with FutureTask and example code.
ExecutorServiceFutureFutureTask
0 likes · 8 min read

This article explains why ThreadLocal variables can lose their values when used across thread pools, and demonstrates how to create custom Runnable and Callable wrappers that propagate HystrixRequestContext to ensure reliable ThreadLocal transmission in multithreaded Java environments.
ConcurrencyContextPropagationHystrix
0 likes · 8 min read

This article provides a comprehensive guide to Java's ThreadPoolExecutor, covering its lifecycle states, constructor arguments, work‑queue options, keep‑alive behavior, thread factories, rejection policies, common methods, and practical code examples for Callable, Runnable, Future and FutureTask.
ExecutorServiceFutureFutureTask
0 likes · 20 min read

Through a whimsical first‑person narrative, the article explains three Java thread‑creation techniques—extending Thread, implementing Runnable (including anonymous and lambda forms), and using Callable with FutureTask—to illustrate their syntax, usage, and the ability to retrieve thread results.
ConcurrencyJavaRunnable
0 likes · 7 min read

This article explains how Java's Callable interface, ExecutorService, and Future work together to execute asynchronous tasks, detailing their API relationships, internal implementations, and practical usage examples with code snippets illustrating task creation, submission, and result retrieval.
ConcurrencyExecutorServiceFuture
0 likes · 14 min read

This article explores Java's thread creation methods, contrasts Runnable and Callable, delves into the ExecutorService API, and provides an in‑depth analysis of Future, FutureTask, and their internal state management, complete with practical code examples and performance‑optimizing techniques for concurrent programming.
ConcurrencyFutureJava
0 likes · 23 min read

This article provides a detailed analysis of JDK 1.8’s FutureTask implementation, explaining its purpose, usage examples, internal structure, state transitions, key methods such as run, get, cancel, and the concurrency mechanisms like volatile fields, CAS operations, and thread‑waiting queues.
ConcurrencyFutureFutureTask
0 likes · 32 min read

This article introduces the fundamentals of Java multithreading and concurrency, covering the differences between processes and threads, the relationship between Thread and Runnable, start vs run, thread creation methods, handling return values, thread states, sleep vs wait, notify vs notifyAll, yield, interrupt, and the use of thread pools with executors.
ConcurrencyJavaThread
0 likes · 21 min read

This article explains the three primary techniques for creating threads in Java—subclassing Thread, implementing the Runnable interface, and using Callable with Future—provides complete code examples for each method, and compares their advantages and disadvantages for practical multithreading development.
FutureJavaRunnable
0 likes · 8 min read

This article explains how to implement asynchronous requests and asynchronous method calls in Spring Boot, covering servlet‑based async, Callable, WebAsyncTask, DeferredResult, @Async annotation, thread‑pool configuration, common pitfalls, and the differences between async request and async call.
JavaServletSpring Boot
0 likes · 11 min read

This article explains three Java thread‑creation techniques—extending the Thread class, implementing the Runnable interface, and implementing the Callable interface—provides complete code examples for each, compares their advantages and disadvantages, and recommends the best practice for concurrent programming.
ConcurrencyJavaRunnable
0 likes · 6 min read

The article explains Python's built‑in callable() function, detailing how it determines whether objects such as functions, methods, classes, lambdas, and instances with a __call__ method are callable, and provides numerous code examples illustrating true and false cases for various object types.
ObjectPythonbuilt-in function
0 likes · 4 min read

This article explains Python’s magic methods—special double‑underscore functions like __init__, __new__, __getattr__, and __call__—showing how they control object construction, attribute access, custom containers, callability, context management, descriptors, and copying, with clear code examples for each feature.
COPYcallablecontext-manager
0 likes · 15 min read

This article explains three primary ways to create multithreaded Java programs—extending Thread, implementing Runnable, and employing ExecutorService with Callable and Future—providing code examples, execution details, and a complete runnable example that demonstrates thread creation, execution, and result retrieval.
ExecutorServiceFutureJava
0 likes · 7 min read

This article explains how Java's Callable interface and Future objects work together to produce asynchronous results, compares direct FutureTask usage with ExecutorService submission, and demonstrates handling multiple tasks using CompletionService for efficient multithreaded programming.
ExecutorServiceFutureJava
0 likes · 5 min read

This article explains how to achieve thread communication and coordination in Java using Thread.join(), Object.wait()/notify(), CountDownLatch, CyclicBarrier, and the Callable/FutureTask pair, providing complete code examples and execution results for each technique.
CountDownLatchCyclicBarrierFutureTask
0 likes · 14 min read

This article explains Java’s asynchronous call mechanisms, reviews thread counters like CountDownLatch, introduces the Future pattern with its core roles and structure, provides a step‑by‑step code implementation, and shows how the JDK implements Future using Callable and FutureTask.
ConcurrencyFutureJava
0 likes · 8 min read

This article compares Java's Callable and Runnable interfaces, demonstrates how Future.get() blocks, shows alternative submit methods, and provides complete code examples illustrating return values, task completion checks, and practical usage of ThreadPoolExecutor.
FutureRunnableThreadPoolExecutor
0 likes · 5 min read
