multithreading

Bearded confident maintenance engineer in white shirt is working in database center

Some amazing Thread Methods which will make your task easy

Reading Time: 3 minutes Multithreading is one of the very important concepts in Scala programming. It allows us to create multiple threads in our program to perform various tasks. Now Scala Thread class provides us many methods which make our tasks easy. In this blog, we are going to discuss a few of these methods. Scala Thread Methods Scala threads provide us various methods to deal with threads. In Continue Reading

Computer code on screens

Let’s find out the difference between Thread and Runnable

Reading Time: 2 minutes Multithreading is a process where we are uses multiple threads (threads are the sub-processes, they are lightweight and occupy less space) to perform various tasks simultaneously. Multithreading is used to achieve multitasking. There are two ways by which we can create threads in SCALA By extending the Thread class By extending the Runnable interface Now there is a question that what is the difference between Continue Reading

What is multi-threading?How to achieve multi-threading in java?

Reading Time: 3 minutes Multi threading  is a process of executing multiple threads simultaneously.Multi threading don’t allocate separate memory area so saves memory, and context-switching between the threads takes less time than process. Multi-threading is the idea of multitasking into applications where you can distribute specific operations within a single application into individual threads. Each of the threads can run in parallel. It performs multi activities concurrently. Multi Tasking Continue Reading

Threading and Synchronization

Reading Time: 9 minutes In this blog, we will learn about threading and synchronization in java What is a Java Thread ? A thread, in the context of Java, is the path followed when executing a program. All Java programs have at least one thread, known as the main thread, which is created by the Java Virtual Machine (JVM) at the program’s start when the main() method is invoked Continue Reading

Futures and Promises: Functional Way of Concurrency

Reading Time: 3 minutes So, from the heading, you must be wondering that what is so special about Futures and Promises and why we are calling it the functional way of concurrency. Well, you all must be aware of the problems that are associated with concurrent programming whether it’s debugging a multithreaded program or shared state concurrency and that’s where Futures and Promises help you so that you don’t Continue Reading

Multi threading in JAVA

Reading Time: 3 minutes In this blog we will understand how Multi threading works in JAVA and why is it so Important to understand? What is Multithreading? Multithreading in Java is a process of executing two or more threads simultaneously to maximum utilisation of CPU. Multi-threaded applications execute two or more threads run concurrently. Hence, it is also known as Concurrency in Java. Advantages of multithread: The users are not Continue Reading

Java concurrency: Reentrant Locks

Reading Time: 3 minutes Hello readers! Welcome to another blog in the Java concurrency series. Today, we are going to look at the Reentrant Locks in Java. What it is, how to use it, and mainly, what is the difference between using Reentrant Locks and synchronization. So, let’s dive straight into it. Reentrant Locks Reentrant locks work just like the synchronized locks in java, but have much more facilities Continue Reading

Java Concurrency: Count Down Latches

Reading Time: 2 minutes Hello readers, and welcome to yet another blog in the Java Concurrency series. Today, we are going to look at the CountDownLatch class in Java, what it is and how to use it. So, let’s dive straight into it.

Java Concurrency: Thread Confinement

Reading Time: 3 minutes Hello readers! In this blog, we are going to explore about Thread Confinement, what it means and how do we achieve it. So, let’s dive straight into it.

Java Concurrency: Atomic Variables

Reading Time: 3 minutes In today’s blog, we will be discussing and understanding the use of atomic variables with regards to concurrency in Java. But before understanding atomic variables, let’s understand what do we mean by atomic or atomicity.

Threading and Futures in Java

Reading Time: 4 minutes Welcome readers, this blog is all about threading in Java. After reading this, you would be comfortable enough to program multi-threaded applications. Here, you will learn about java threads, thread pools and the concept of java future. Java Threading: The Beginning In Java, the concept of multi-threading was there from the first version itself. In Java, you can implement threading by implementing Runnable interface and Continue Reading

Knolx – Akka Finite State Machine

Reading Time: < 1 minute Hi all, Knoldus has organized a 30 min session on 17th February 2017 at 4:05 PM. The topic was Akka Finite State Machine. Many people have joined and enjoyed the session. I am going to share the slides and Video here. Please let me know if you have any question related to linked slides.