Power of Multi-Threading

Techniques to unlock the Power of Multi-Threading in Java

Hey, tea lovers! Today, we are going to tackle the topic of multithreading in Java. Have you ever heard the phrase “when doing one thing, prepare for another and execute a third”? This is the essence of multi-threading, where we perform multiple tasks concurrently. With Java, you can achieve this by creating multiple threads within your program. When we talk about concurrency in Java we inherently talk about multi-threading. Multithreading refers to running multiple threads concurrently. Thread is just a lightweight sub-process. You can think of it as a mini process. Let us look at it by reading this post in your one thread and concurrently sipping that hot tea in another. ...

January 9, 2020 · 8 min · Imran Shaikh