Concurrency
-
Difference between Apache and NginxDevOps/MIddleware 2020. 5. 14. 12:24
1. Overview Both Apache and Nginx are open-source high-performance web servers capable of handling diverse workloads to satisfy the needs of modern web demands. They are conceptually close to each other but are close rivals in the web server business. Apache has been the leader in the web server ecosystem for 20 years and is much more popular, however, Nginx is not without its fair share of adva..
-
CallableStaticPL/JAVA 2019. 8. 21. 22:39
1. Overview Whereas Runnable object can not return a result, Callable return a result and throw a checked exception in spite of being executed inside a thread likewise. 2. Description 2.1 Callable Callable interface has a single method call() which is meant to contain the code is executed by a thread. Callable callable = new Callable() { @Override public String call() throws Exception { // Perfo..
-
Executors Framework and Thread PoolsStaticPL/JAVA 2019. 8. 21. 20:39
1. Overview Naive Thread management by extending the Thread class or implementing the Runnable interface has a problem when an application requires creating 20 or 30 threads for running tasks concurrently. Executors Framework is creating and managing threads for a production-ready application like hundreds, if not thousands of threads running simultaneously. 2. Description 2.1 Executor Functiona..