locking
Global variable in ASP.NET
I wish to stop a thread from entering code while another thread is still executing that bit of code: I\'m currently going the following:[详细]
2023-04-07 14:45 分类:问答Synchronizing to an object to be instantiated
Are there any synchronizing/reference issues with this code? (Assume that myStrings is already instantiated.)[详细]
2023-04-06 13:56 分类:问答hibernate and locking
I\'m trying to exclude two reading threads from read the same record via hibernate. My SSCCE is as above, but both threads can read the object, while i was expecting that Thread-2 will throw an Except[详细]
2023-04-06 08:31 分类:问答Mysql InnoDB table locked but I can "select" from another session. What gives?
During my development of some code, I needed to \'write l开发者_StackOverflowock\' an InnoDB table in order to avoid race conditions concurrency problems. \'read lock\' is not good enough as some para[详细]
2023-04-05 10:18 分类:问答SELECT Blocking Update in DB with RCSI enabled
We have a database, tstERP.tstERP has RCSI enabled and that was verified via: SELECT is_read_committed_snapshot_on, name from sys.databases WHERE name = \'TEST\'[详细]
2023-04-05 09:38 分类:问答Transactions, locks, isolation levels
I have a few questions regarding subject from the title. First of all, lets assume that we work with JDBC, and there we have 2 transactions T1 and T2. In T1 we execute select statement on one particul[详细]
2023-04-05 09:17 分类:问答Why does Compare-And-Swap use Memory and Register
Why does the atomic swap instruction, which can be used to implement spin locks exchange data between a register and a memory location rather th开发者_运维问答an swapping two registers’ contents?The[详细]
2023-04-05 06:55 分类:问答Should I use const to make objects thread-safe?
I wrote a class which instances may be accessed by several threads. I used a trick to remember users they have to lock the object before using it. It involves keeping only const instances. When in the[详细]
2023-04-04 18:08 分类:问答Ignoring locks in SVN commit
How to make SVN to ignore the lock errors it faces when committing a collection of files? Pointing out the locked files, each time you want to c开发者_开发问答ommit the whole repository is time consum[详细]
2023-04-04 14:31 分类:问答lock inside a simple property - can it deadlock?
Questions: Can I deadlock this code? Does the IsMouseInside property is thread safe? Does the use of the copy variable make sense?[详细]
2023-04-04 08:17 分类:问答