Top "Locks" questions

A lock generally refers to something that prevents another process from starting or accessing the same information until the lock is released.

Dropping table makes MySQL hang

When I try to drop a table, MySQL hangs. I don't have any other open sessions. How to resolve this? …

mysql locks
Creating a standard map that is thread safe

In my current scenario speed is essential I have a map that is only being read by multiple threads and …

c++ multithreading locks
java.lang.IllegalMonitorStateException: object not locked by thread before wait()

But I am synchronizing on the 'roster' object everywhere it gets new'ed. How come ? The offending code: public Roster getRoster() { …

java android synchronize locks
Oracle SQL: NOLOCK in join statment

I can not use NOLOCK after table names in join statements. Is it even a valid scenario to try to …

sql oracle join locks read-uncommitted
Thread safe implementation for Hash Map

First, I'll describe what I want and then I'll elaborate on the possibilities I am considering. I don't know which …

java thread-safety concurrenthashmap locks
Unlocking lock owned by another thread java

I have a LockManager that manages the locks of several threads. Sometimes the threads are bad boys, and I have …

java locks reentrantlock
Are Locks AutoCloseable?

Are Locks auto-closeable? That is, instead of: Lock someLock = new ReentrantLock(); someLock.lock(); try { // ... } finally { someLock.unlock(); } ...can I say: …

java resources java-7 resource-management locks
How do I replace a table in Postgres?

Basically I want to do this: begin; lock table a; alter table a rename to b; alter table a1 rename …

sql postgresql concurrency ddl locks
Lock on table while inserting data in SQL Server database

I have question on lock on table in SQL Server while inserting data using multiple processes at a single time …

sql-server database locks
JBoss arjuna TransactionReaper don't rollback on timeout

I'm working with an application that access an oracle database. Sometimes objects (rows) on that database are locked by process …

hibernate jboss transactions timeout locks