Romman Sabbirrommansabbir.com·Jul 25, 2024Understanding ConcurrentHashMap in Kotlin/JavaIntroduction In multi-threaded programming, managing data consistency and thread safety is paramount. A common challenge is efficiently managing a shared resource without compromising on performance. In Java and Kotlin, the ConcurrentHashMap is a key...Discuss·38 readsKotlinconcurrenthashmap
Michael Pipermichaelpiper.hashnode.dev·Jul 24, 2024Mastering Concurrency in Flutter: A Comprehensive Guide to Using Isolates for Efficient Data ProcessingIn Flutter, an isolate is a separate thread of execution that runs independently from the main thread. Isolates are useful for performing heavy computational tasks without blocking the main thread, which is responsible for maintaining a smooth user i...DiscussFlutter
Shiva Arukondashivasoftwareengineerblog.hashnode.dev·Jul 24, 2024Platform Threads and Virtual Threads.Platform Threads When we create a thread object in Java, it includes the code to be executed and the start method. Upon invoking the start method, the following steps occur: OS Thread Creation: The OS creates and starts a new thread within our appli...Discuss·10 likesPlatformThreads
Chetan Dattachetan77.hashnode.dev·Jul 17, 202431 Java - Multithreading 8 (Shutdown | Scheduler | ThreadLocal | Virtual Thread)Executors Important Methods Shutdown Initiates orderly shutdown of the ExecutorService AFter calling shutdown, Executor will not accept new task submission. Already submitted tasks, will continue to execute AwaitTermination It's an optional fun...DiscussJavaPlatform Threads
Beau CarnesforfreeCodeCampfreecodecamp.org·Jul 16, 2024Multithreading for BeginnersMultithreading is a crucial concept in computer science that allows for the concurrent execution of two or more threads, enabling more efficient and optimized use of resources. It can significantly improve the performance of applications, particularl...Discussmultithreading
Chetan Dattachetan77.hashnode.dev·Jul 15, 202430 Java - Multithreading 7 (Executors | Fork-Join Pool)Brief Executors provides Factory methods which we can use to create Thread Pool Executor. Threase are present in java.util.concurrent package. Fixed ThreadPoolExecutor newFixedThreadPool method creates a thread pool executor with a fixed no. of ...DiscussJavaWork-Stealing-pool
Chetan Dattachetan77.hashnode.dev·Jul 15, 202429 Java - Multithreading 6 (Future | Callable | CompletableFuture)Status of submitted task public class Main { public static void main(String[] args) { ThreadPoolExecutor poolExecutor = new ThreadPoolExecutor(1,1,10, TimeUnit.HOURS, new ArrayBlockingQueue<>(10), Executors.defaultThreadFa...DiscussJavamultithreading
Chetan Dattachetan77.hashnode.dev·Jul 14, 202428 Java - Multithreading 5 (ThreadPoolExecutor)Thread Pool It's a collection of threads (aka workers), which are available to perform the submitted tasks. Once task completed, worker thread get back to Thread Pool and wait for new task to assigned. Means threads can be reused. Advantages of...DiscussJavaThread pool
ByteScrum TechnologiesforByteScrum Technologiesblog.bytescrum.com·Jul 12, 2024Understanding Multithreading in Python with ExamplesMultithreading in Python is a powerful way to make your programs more efficient by allowing multiple threads to execute concurrently. This can help improve the performance of your applications, especially those that perform a lot of I/O operations or...Discuss·10 likesPythonpythonthreads
Tarun KumarforTarun Kumar's team blogtarunwithcode.hashnode.dev·Jul 11, 2024MultiThreading in JavaHello everyone, I am Tarun. Today, I learned about multithreading using Java. During this learning, I discovered new things and enjoyed it. I also created a small project to give a Happy New Year greeting with some interesting fun. Multithreading in...DiscussJava