Top "Locking" questions

Locking allows different types of resources to be used exclusively by one process at a time.

Git 'fatal: Unable to write new index file'

I've seen many of the other threads about this and they don't help. I have a very simple repo - …

git locking
How to implement a lock in JavaScript

How could something equivalent to lock in C# be implemented in JavaScript? So, to explain what I'm thinking a simple …

javascript events locking dom-events deadlock
Monitor vs lock

When is it appropriate to use either the Monitor class or the lock keyword for thread safety in C#? EDIT: …

c# .net multithreading locking monitor
How to detect query which holds the lock in Postgres?

I want to track mutual locks in postgres constantly. I came across Locks Monitoring article and tried to run the …

sql postgresql locking
Concurrent HashSet<T> in .NET Framework?

I have the following class. class Test{ public HashSet<string> Data = new HashSet<string>(); } I need …

c# multithreading thread-safety locking mutex
How do I lock read/write to MySQL tables so that I can select and then insert without other programs reading/writing to the database?

I am running many instances of a webcrawler in parallel. Each crawler selects a domain from a table, inserts that …

mysql locking web-crawler mysql-error-1093
What's the difference between an exclusive lock and a shared lock?

According to wikipedia, Shared locks are sometimes called "read locks" and exclusive locks are sometimes called "write locks". Can you …

unix locking
java.lang.IllegalMonitorStateException: (m=null) Failed to get monitor for

Why may this happen? The thing is that monitor object is not null for sure, but still we get this …

java multithreading locking pool
Parallel.ForEach with adding to list

I'm trying to run multiple functions that connect to a remote site (by network) and return a generic list. But …

c# list locking parallel-processing
C# thread safety with get/set

This is a detail question for C#. Suppose I've got a class with an object, and that object is protected …

c# locking properties thread-safety