Hey Algos,

It’s a long time no see. After a long break, I thought to write something for you, and it is about gRPC. Now, most of you do not know the…


A thread is simply a sequence of programmed instructions that can be executed independently in a CPU. A single process of a program can have several threads, these threads are executed parallelly at the same time within the same process.

There are two types of processes based on the number…


The terms Mutability and Immutability in programming are very important topics to understand the behavior of a language. It’s always better if you have a great foundation of knowledge in those core concepts of programming. In this little article, what my intention is to give an insight of the term…


It seems like Java is creating a turning point, for a long time java developers are kind of restricted in a way of Object-Oriented thinking which is powerful at the production level. But that restriction forces us to do everything in that manner, no matter which kind of thing we…


For many GUI programming languages, one of the most powerful projects for understanding the behavior of a particular language is the Calculator app. even though it is kind of kid’s work, it might help you to figure out some of the pretty basic and important concepts.

I am as a…


To enhance the speed of a program, we use multiple threads to access the same resource at the same time. But, this kind of shared resources can produce unexpected results due to this simultaneous access made by multiple threads. The following example demonstrates the problem.

Here, we have a sample…


Suppose there is server software that creates new threads for each and every client request. …


Java provides a bunch of methods to manage threads that we create. A few of the most important methods are listed down below.

Now let’s see how each of these methods is working with examples. getName() Method


A thread is the smallest sequence of instruction executions that can be scheduled by an OS scheduler to run on a CPU. A thread is living inside a process and it is considered a lightweight process.

Threads are the fundamental model of program execution in a Java program, and the…

Hashan Mahesh

I am an undergraduate at the University of Kelaniya, Sri Lanka. I study Information Communication Technology including Artificial Intelligence technologies

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store