© 2023 Hashnode
#concurrency
In concurrent programming, it's crucial to synchronize access to shared resources to avoid data races and ensure consistency. In Go, the sync package provides two types of locks: RLock (read lock) and…
I used Java during most of my career, which had concurrency support from the early days. It allowed developers to start threads and synchronize access to the data shared by more than one thread. Howev…
Imagine you and your friends are playing on a playground, and there are different activities to do: swinging on the swings, sliding down the slide, and climbing on the jungle gym. Concurrency is like …
React v18.0 has broken ground by introducing a long-awaited feature: Concurrency! Concurrency refers to having more than one task in progress at once, and concurrent tasks can overlap depending on which is more urgent. What is concurrency?…
At Dwarves, we set monthly themes for our company to research an area of programming. We wanted to focus on Golang and some of the more common problems and nuances companies face, such as distributed …
Overview In today's fast-paced technological landscape, maximizing performance and efficiency is a top priority for developers. One powerful technique to achieve this is multi-threading, which allows Python developers to leverage the full p…
The Java Virtual Machine in a Nutshell The Java Virtual Machine (JVM) is an abstract computing machine that enables a computer to run a Java program. There are three notions of the JVM: specification,…
Go Routines Go routine is a light weighted thread of execution. Routines differ from OS threads because the Go Scheduler can multiplex multiple go routines into a single OS thread. They are a way to r…
Asynchronous programming is a programming paradigm where tasks are executed concurrently without waiting for other tasks to finish. In a synchronous program, a task must wait for the previous task to …
Introduction Go provides us great and convenient ways to write concurrent programs with high performance to execute tasks concurrently (perhaps in parallel if the program is run on a machine with mult…