locking
Boolean Property Getter and Setter Locking
Is there any reason why you would create locks around the getter and setter of a boolean property like this?[详细]
2023-03-24 07:28 分类:问答What is the difference between lock(this) and lock(thisLock)?
I\'m reading lock Statement (C# Reference) where I saw this code: class Account { private Object thisLock = new Object();[详细]
2023-03-22 21:48 分类:问答Hibernate Java batch operation deadlock
We have J2EE application built using Hibernate and struts. We have RM开发者_StackOverflow社区I registry based implementation for business functionality.[详细]
2023-03-22 05:40 分类:问答Locking on a non-thread-safe object, is it acceptable practice?
I got some grief about this in a comment I posted the other day, so I wanted to post the question in an attempt for people to tell me that I\'m crazy, which I\'ll accept, or tell me that I may be righ[详细]
2023-03-22 00:09 分类:问答Creation time of a lock in SQL Server 2008
So I\'m trying to monitor the longest living lock in my database. The idea is that if a lock has been held for a certain amount of time, I will receive a warning in my application.[详细]
2023-03-21 13:43 分类:问答MySQL InnoDB: Index Locks - Advice Needed
I have an application that is sending function calls to my mySQL database. Once sent, the function does what it needs (which includes single line selects, INSERT and UPDATE by index).[详细]
2023-03-21 08:29 分类:问答Triplestore write performance and locking
I have seen lots of triplestore benchmarks which focus on read and query performance. However, the application which I am looking at moving to a triplestore has very dynamic data and I am very concern[详细]
2023-03-20 18:10 分类:问答Concurrent acces to a static member in .NET
I\'ve a class that contains a static collection to store the logged-in users in an ASP.NET MVC application. I just want to know about the below code is thread-safe or not. Do I need to lock the code w[详细]
2023-03-20 17:02 分类:问答Why this ReadWriteLock example dosen't work?
LinkedList throws exception when trying to poll data. But I think i correctly use read/write lock concept. What is wrong with that code?[详细]
2023-03-19 19:01 分类:问答How come hibernate executes update sql statements when I do a read using HQL on the same object/table?
What\'s happening is i\'m performing a read of some records, say Car where color = red, and it returns 10 cars. Then I iterate over those 10 cars, and update a date in that car object, i.e. car.setDat[详细]
2023-03-19 16:34 分类:问答