locking
Testing concurrent access on Rails 3 application
This question is a follow up from this other question: Rails 3, locking tables on an auction type engine[详细]
2023-03-30 11:36 分类:问答How to "lock" a record from being updated or deleted?
I have a model User which automatically has a Task开发者_高级运维 generated. I want to lock this task from editing or deleting.[详细]
2023-03-30 07:07 分类:问答Is there a function in boost to find how many people are waiting on a mutex lock?
I am using boost 1.4开发者_运维问答1.0. Is there a way to use boost to find how many people are waiting on the lock?No: there is no way to get a reliable answer as it could change before the function[详细]
2023-03-30 00:38 分类:问答Best way to find SQL Locks in SQL Server 2008
What is the best way to find the SQL locks along wih the user associated with that开发者_运维技巧 lock in SQL Server 2008?select * from sys.dm_tran_locks will list all current locks, granted or pendin[详细]
2023-03-29 21:07 分类:问答mySQL datetime comparing syntax error
I am making a booking system for my mother and I have some problems locking already booked times. Here is the code:[详细]
2023-03-29 15:14 分类:问答Threads synchronization. How exactly lock makes access to memory 'correct'?
First of all, I know that lock{} is synthetic sugar for Monitor class. (oh, syntactic sugar) I was playing with simple multithreading problems and discovered that cannot totally understand how lockng[详细]
2023-03-29 05:48 分类:问答Making pthread_rwlock_wrlock recursive
I have a problem regarding the behaviour of the pthread function pthread_rwlock_wrlock. The specification linked above states that when one thread has locked the lock for writing and the same thread l[详细]
2023-03-29 02:50 分类:问答MYSQL how to ensure that one query is ran right after another
I have problems with concurrent connections. How do i ensure that one query in ran just after another, without queries from another con开发者_高级运维nections coming in between. I\'ll probably need so[详细]
2023-03-29 01:09 分类:问答C# - Lock question using EnterWriteLock
The following code is from MSDN: private ReaderWriterLockSlim cacheLock = new ReaderWriterLockSlim(); private Dictionary<int, string> innerCache = new Dictionary<int, string>();[详细]
2023-03-28 20:05 分类:问答PHP download blocks rest of requests
I am downloading files from my server using a very simple script: header(\'Content-Description: File Transfer\');[详细]
2023-03-28 15:42 分类:问答