CompletableFuture

Helper Utility Class import java.util.StringJoiner; public class DebugUtil { public static void delay(long millis) { try { Thread.sleep(millis); } catch (InterruptedException e) { e.printStackTrace(); } } public static void logTimeAndThread(String tag) { String result = new ...

Posted on Tue, 09 Jun 2026 18:10:10 +0000 by BlueSkyIS

Multithreading in .NET Core

Process: A process is not a physical entity; it is a computer concept (virtual) that represents the collection of all computing resources (CPU, memory, disk, network, etc.) used when a program is running. Thread: Also a computer concept (virtual). It is the smallest execution flow of a process (any operation response requires an execution flow) ...

Posted on Sat, 06 Jun 2026 17:54:26 +0000 by eduard

Understanding Promise Internals: A Deep Dive into Promise/A+ Implementation

Constructor The Promise constructor accepts an executor function that receives two arguments: resolve and reject. This is where the core initialization logic resides. class SimplePromise { constructor(executor) { this.status = PENDING; this.onFulfilledCallbacks = []; this.onRejectedCallbacks = []; executor( ...

Posted on Fri, 08 May 2026 04:06:07 +0000 by jmosterb