Top "Locking" questions

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

Releasing Windows file share locks

This problem crops up every now and then at work. Our build machine can have it's files accessed via a …

windows file locking share
Reader/Writer Locks in C++

I'm looking for a good reader/writer lock in C++. We have a use case of a single infrequent writer …

c++ multithreading locking
How can I release locks in Subversion recursively?

I am having a problem with version control in Subversion. I checked out a working copy from respository and got …

version-control locking svn
Make sure only a single instance of a program is running

Is there a Pythonic way to have only one instance of a program running? The only reasonable solution I've come …

python process locking mutual-exclusion
Why does the lock object have to be static?

It is very common to use a private static readonly object for locking in multi threading. I understand that private …

c# multithreading locking
MySQL: Transactions vs Locking Tables

I'm a bit confused with transactions vs locking tables to ensure database integrity and make sure a SELECT and UPDATE …

sql mysql transactions locking
C# lock statement, what object to lock on?

I have 3 questions that I need help with. What are the correct objects/references to be passed as lock statement …

c# multithreading locking
C++ mutex in namespace std does not name a type

I'm writing a simple C++ program to demonstrate the use of locks. I am using codeblocks and gnu gcc compiler. #…

c++ multithreading compiler-errors locking mingw
How to lock a single row

I have a user table with field lastusedecnumber. I need to access and increment lastusedecnumber. During that accessing time I …

mysql locking myisam
How efficient is locking an unlocked mutex? What is the cost of a mutex?

In a low level language (C, C++ or whatever): I have the choice in between either having a bunch of …

multithreading locking mutex blocking