Top "Locking" questions

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

Implementing a critical section in CUDA

I'm trying to implement a critical section in CUDA using atomic instructions, but I ran into some trouble. I have …

cuda synchronization locking critical-section
How to detect if PIN/password/pattern is required to unlock phone?

How can I detect if the phone is locked by a password, pin or pattern? thank you!

android locking unlock
How to do optimistic locking in hibernate

I am completely new to Hibernate and Spring and in my attempt to learn Spring, Hibernate, Maven etc I only …

java hibernate locking optimistic-locking
SQL Server, the misleading XLOCK & optimizations

From some recent testing and reading I've done, it seems the "X" (exclusive) name part of XLOCK is misleading. It …

sql-server sql-server-2008 locking pessimistic-locking
Sharing a Java synchronized block across a cluster, or using a global lock?

I have some code that I want to only allow access to by one thread. I know how to accomplish …

java sql locking db2 cluster-computing
Race conditions in django

Here is a simple example of a django view with a potential race condition: # myapp/views.py from django.contrib.…

python database django locking race-condition
Can I limit concurrent invocations of an AWS Lambda?

I have a Lambda function that’s triggered by a PUT to an S3 bucket. I want to limit this …

amazon-web-services locking aws-lambda
How do I do an exclusive checkout in SVN?

I'm looking for a way to make an exclusive checkout from SVN. Is there a way to automatically lock a …

svn locking svn-checkout
Why is it a bad practice to lock the object we are going to change?

Why is it a bad practice to use lock as in the following code, I'm assuming this is a bad …

c# multithreading locking
SQL Server lock/hang issue

I'm using SQL Server 2008 on Windows Server 2008 R2, all sp'd up. I'm getting occasional issues with SQL Server hanging with …

sql-server performance sql-server-2008 locking subsonic3