Top "Locking" questions

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

boost::unique_lock vs boost::lock_guard

I don't well understand the difference betweeen these two lock classes. In boost documentation it is said, boost::unique_lock …

c++ boost locking
best way to obtain a lock in php

I'm trying to update a variable in APC, and will be many processes trying to do that. APC doesn't provide …

php locking apc
Does a locked object stay locked if an exception occurs inside it?

In a c# threading app, if I were to lock an object, let us say a queue, and if an …

c# .net multithreading exception locking
BEA-141297 - Could not get the server file lock

Following error is encountered when trying to start Oracle Weblogic Server: <Info> <Management> <BEA-141297> &…

oracle server locking weblogic
Windows 2008 R2 - Kernel (System Process PID=4) is locking files and folders

Windows 2008 R2 - Kernel (System Process PID=4) is locking files and folders for a long time. For example when deleting …

file kernel locking windows-server-2008-r2 delete-file
fcntl, lockf, which is better to use for file locking?

Looking for information regarding the advantages and disadvantages of both fcntl and lockf for file locking. For example which is …

c linux file locking
Only inserting a row if it's not already there

I had always used something similar to the following to achieve it: INSERT INTO TheTable SELECT @primaryKey, @value1, @value2 WHERE …

sql sql-server tsql concurrency locking
What are the differences between various threading synchronization options in C#?

Can someone explain the difference between: lock (someobject) {} Using Mutex Using Semaphore Using Monitor Using Other .Net synchronization classes I …

c# multithreading synchronization locking mutex
How to display Activity when the screen is locked?

My application is launched on car docking event, I want to wake up phone (done by system) and unlock screen …

android locking screen
Do spurious wakeups in Java actually happen?

Seeing various locking related question and (almost) always finding the 'loop because of spurious wakeups' terms1 I wonder, has anyone …

java multithreading locking spurious-wakeup