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...DiscussJavaCreation 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·244 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·281 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...Discussmpsc
Josh AdvisoryforJosh Advisory Blogblog.joshadvisory.tech·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
Harsh Mangeharshmange.hashnode.dev·Apr 26, 2023Understanding Deadlock in OS: Causes and SolutionsWhat the heck is Deadlock? In an operating system, a deadlock occurs when two or more processes are blocked and waiting for each other to release the resources that they are holding. As a result, none of the processes can proceed, leading to a stands...Discuss·49 readsdeadlock