Adhil Novandribukakoding.hashnode.dev·Nov 27, 2024Simple Guide to Managing Shared Resources with Go MutexHas anyone used Go Mutex in their project? When we should use Mutex? How do you use Mutex properly and safely? Mutex stands for 'mutual exclusion'. It ensures that only one goroutine can access a shared resource at any given time, preventing race con...Discussmutex
Abiodun Awoyemiaagbotemi.hashnode.dev·Oct 21, 2024Concurrency, Mutex, and Arc in Rust: A Comprehensive GuideIntroduction Imagine you’re a conductor, leading an orchestra of a hundred musicians. Each musician is playing their part, but they need to harmonize, to come together at just the right moments. This is the essence of concurrency in programming, and ...DiscussRust
Her Code Reviewhercodereview.hashnode.dev·Oct 9, 2024Crafting Thread-Safe Functions in Java - Part 2In this blog post, we will revisit a simple class with three methods for printing values to the console and explore how to make it thread-safe. package com.example; public class OrderedPrinting { public void printFirst() { System.out.pri...DiscussMultithreading in JavaJava
Her Code Reviewhercodereview.hashnode.dev·Oct 9, 2024Crafting Thread-Safe Functions in Java - Part 1In a previous article, we explored the concepts of critical sections and race conditions in multithreading-you can find it here.In this article, I will demonstrate these concepts through a simple function. Let's examine a classic counter functionalit...DiscussMultithreading in JavaJava
Saurav Shrivastavsaurav23.hashnode.dev·Aug 30, 2024Understanding the Global Interpreter Lock (GIL) and Its Impact on Threading in PythonWhat is the GIL? The Global Interpreter Lock (GIL) is a mutex that protects access to Python objects, preventing multiple native threads from executing Python bytecode simultaneously. The GIL exists because CPython, the reference implementation of Py...Discuss·10 likes·30 readsPython
Nachiappan Kumarappandev-chronicle.hashnode.dev·May 27, 2024Mutex(lock) with C# exampleIn previous blog posts, we've observed that Threads/Tasks have the capability to run concurrently (more accurately, pseudo-concurrently). Additionally, we've explored how it's the responsibility of the operating system to manage thread scheduling. Th...Discuss·40 readsshared-resources
Chris Dourisdigitalcreations.hashnode.dev·Feb 27, 2024Day 21/100 100 Days of CodeI implemented mutex in my program and moved the code around to fix some problems. Now, the critical sections get locked and the next thread is waiting for the thread that has locked the section to unlock it. I also fixed an issue where canceling` the...Discuss100 Days of CodeC++
Pradip Limbupradiplimbu.hashnode.dev·Jan 7, 2024Using Redis for implementing Mutex to prevent high load in the databaseLet's consider a simple web application. A role-based ticket management system. Each user page has a widget that shows his work progress. The work progress value is changed based on the ticket status the user worked on. Without any cache system imple...DiscussRedis
Raineraineyang.hashnode.dev·Dec 25, 2023Rust Learning Note: Thread Sychronizationthis article is a summary of Chapter 4.6.3 - 4.6.6 of Rust Course (course.rs/) Multiple Producer Single Consumer The Rust standard library provides a channel among multiple threads called std::sync::mpsc. mpsc is short for multiple producer, single c...Discuss·36 readsmpsc
Timothy Adeyeyetimothy.hashnode.dev·Nov 9, 2023Writing Mutex Logic for Concurrency ControlIntroduction Concurrency is a fundamental aspect of modern software systems. As applications grow in complexity, ensuring that multiple operations occur seamlessly and without conflicts becomes increasingly challenging. Mutex (short for "mutual exclu...Adewole Caleb Erioluwa and 1 other are discussing this2 people are discussing thisDiscuss·11 likes·229 readsconcurrency