Samirasamiracppdev.hashnode.dev·Nov 27, 2024𝐃𝐚𝐭𝐚 𝐑𝐚𝐜𝐞 and 𝐑𝐚𝐜𝐞 𝐂𝐨𝐧𝐝𝐢𝐭𝐢𝐨𝐧𝐬🔥In this post, I’ll cover key 𝐜𝐨𝐧𝐜𝐮𝐫𝐫𝐞𝐧𝐜𝐲 concepts related to multithreaded programming in C++, which are also commonly asked in #interview_questions. 1️⃣ 𝐃𝐚𝐭𝐚 𝐑𝐚𝐜𝐞𝐬2️⃣ 𝐑𝐚𝐜𝐞 𝐂𝐨𝐧𝐝𝐢𝐭𝐢𝐨𝐧𝐬 Before continuing, let’s under...30 readsdatarace
Daniel Migiziwww.danielmigizi.com·Nov 6, 2024Prevent Race Conditions in Xano with Record LockingThis problem, often referred to as a race condition, can lead to conflicting updates. Here’s a breakdown of what race conditions are, how they arise, and how to use Xano’s database locks and transactions to address them. What is a Race Condition? A r...10 likes·26 readsvisual developer
Danny Crastoblog.danwald.me·Oct 30, 2024CONCAT to update db text fieldI needed to collect messages from different processes which was triggered by a record insertion. To keep things simple and denormalized, this stack overflow gem allows for that. from django.db import models class DBModel(models.Model): @classmet...MySQL
Davidegavide.hashnode.dev·Sep 16, 2024Understanding and Preventing Race Conditions in Web ApplicationsThis article aims to correct a subtle but dangerous bad practice that is often overlooked. I will demonstrate practical examples using Python, FastAPI and PostgreSQL, and I will provide various solutions for the problem, each with its own trade-offs....3 likes·270 readsSecurity
Le Quoc Cuongnospaceavailable.hashnode.dev·Aug 27, 2024Đôi dòng về file system trong LinuxTrong một Linux system tồn tại rất nhiều kiểu file khác nhau, thường thấy là các file thực thi, file ASCII text, vv. Chúng đều được chia ra và lưu trong các directory khác nhau, nhưng nhìn chung một hệ thống Linux sẽ có các directory sau: Tuy nhiên ...57 readsLinux
Seyi Ogunjuyigbeseyiogunjuyigbe.hashnode.dev·Apr 20, 2024How to Avoid Race Conditions in MongoDB with Redis Distributed LocksIntroduction In concurrent systems where multiple operations can access the same resources simultaneously, race conditions can occur, leading to data inconsistencies and undesired outcomes. MongoDB, a popular NoSQL database, provides powerful capabil...Redis
Iwan Prakosoiwandepe.hashnode.dev·Mar 29, 2024Handle Race Condition with Laravel Cache LockRecently I stumbled upon a race condition issue in one of my project. I am using Laravel and there are two approach that I can think of at the time. Using atomic lock at database level or using Laravel cache lock. The Problem The function for my race...43 readsrace-condition
Chris Dourisdigitalcreations.hashnode.dev·Feb 23, 2024Day 18/100 100 Days of CodeConcurrency is a feature that is not aimed at beginner developers. It is important to understand it properly as it can be very confusing and cause problems that might be difficult to understand. I hit a brick wall during the development of Info Hunte...100 Days of CodeC++
Basel Rabiabaselrabia.hashnode.dev·Jul 4, 2023Race Detector (go run -race) and Synchronizing Concurrency in GoData races are among the most common and hardest to debug types of bugs in concurrent systems. A data race occurs when two goroutines access the same variable concurrently and at least one of the accesses is a write. 🚀 Data Race Detector enables Det...144 readsGo Language
Harsh Mangeharshmange.hashnode.dev·Apr 30, 2023What is a Race Condition and How to Prevent it in Your ProgramsWhat the heck is Race Condition? A race condition is a software bug that occurs when the correctness of a system depends on the order or timing of events that occur in the system, but the order or timing is not guaranteed. In other words, it is a sit...32 readsrace-condition