Asynchronous
-
Event Loop, Execution Stack, Web APIs, and Message QueueDynamicPL/Javascript 2019. 10. 23. 01:49
1. Overview Clarify the difference between synchronous and asynchronous in JavaScript. And see How these things to work deeply with Event Loop, Execution Stack, WEB APIs, and Message Queue. 2. Description 2.1 Synchronous One statement is processed after the other, line by line in a single thread in the JavaScript engine 2.2 Asynchronous Allow asynchronous functions to run in the background We pa..
-
CompletableFuture, and FutureStaticPL/JAVA 2019. 8. 20. 11:12
1. Overview CompletableFuture and Future are used for asynchronous programming in Java. Asynchronous programming is a means of writing non-blocking code by running a task on a separate thread than the main application thread and notifying the main thread about its progress, completion or failure. So Main thread doesn't block/wait for the completion of an async task and it can execute other tasks..