Logeshwaran Nlogeshwrites.hashnode.dev·Oct 6, 2024Deadlock Prevention vs. Deadlock Avoidance: Explained with Examples and AnalogiesIn the world of concurrent programming, deadlocks are a significant challenge. A deadlock occurs when two or more processes are unable to proceed because each is waiting for the other to release a resource. This can lead to system freezes, degraded p...DiscussProgramming Blogs
Sushil Kumar Mishrasushilsblog.hashnode.dev·Sep 18, 2024"Mastering the Dining Philosophers Problem: A Guide to Concurrency and Deadlock Prevention in C"Introduction The Dining Philosophers Problem is a classical synchronization problem that beautifully demonstrates the challenges of avoiding deadlock and resource starvation in concurrent programming. Originally formulated by E. W. Dijkstra, it’s wid...Discuss·2 likesoperating system
Chetan Dattachetan77.hashnode.dev·Jul 2, 202425 Java - Multithreading 2Thread Creation Ways Implementing Runnable interface extending Thread class Implementing Runnable interface Step1: Create a Runnable Object Create a class that implements Runnable interface Implement the run() method to tell the task which th...Discuss·158 readsJavaCreation of threads
bandejibandeblogs.hashnode.dev·Jun 26, 2024Operating System Part-3Define the four necessary conditions that characterize deadlock ? Deadlock can arise if four conditions hold simultaneously. Mutual exclusion: only one thread at a time can use a resource . Hold and wait: a thread holding at least one resource is w...Discussoperating system
Pranav Bawgikarpranavbawg.hashnode.dev·May 17, 2024Deadlock and the Dining Philosophers[9] Deadlocks Whenever two or more processes are waiting for something that never comes about, we say they're in a deadlock. Let's say a process requests for resources and if the resources are not available at that time, the process enters a waiting ...Discussoperating system
Jyotiprakash Mishrablog.jyotiprakash.org·Jan 11, 2024The 4 conditions for deadlocksDeadlocks occur when four necessary conditions hold simultaneously. These conditions, known as the "Four Conditions for Deadlock," are: Mutual Exclusion: This condition means that at least one resource must be non-sharable, meaning only one process...Discuss·278 readsdeadlock
Jyotiprakash Mishrablog.jyotiprakash.org·Jan 11, 2024DeadlockA deadlock is a situation in computer science and concurrency theory where two or more processes or threads are unable to proceed with their execution because they are waiting for resources held by each other, causing a standstill. In a deadlock, non...Discuss·285 readsdeadlock
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
Josh AdvisoryforJosh Advisory Blogjoshadvisory-1694585063291.hashnode.dev·Sep 26, 2023SQL UPDATE Query Locking nightmareOne fine morning, around 6 AM, I got a pagerduty alert that the production systems were down, some of our users were able to intermittently access the application but there were mostly database errors. The application I am talking about is a Golang m...Discuss·2 likes·34 readsMySQL
Md Mubeen Ali Zakimubeenzaki.hashnode.dev·Aug 17, 2023Multithreading in Python | Threads & Process | Dead-Lock & Race Condition | Lock VariableProcesses and Threads: A 'Process' is a program in execution, whereas a 'Thread' is a separate execution path in a 'Process'. A 'Thread' can be called as a 'Light-Weight Process' as all the threads within the process share the same computing resource...Discuss·26 readsmultithreading