locking
How to make UIButton always on top, and change able to change the subviews?
I am using two v开发者_Go百科iews that are UIScrollView and UITextView. When program runs, UIScrollView displays. User can scroll it horizontally and paging enabled. If he taps on it the UITextView (w[详细]
2023-04-09 20:16 分类:问答Need to know object locking information
In java, I have created an object with global scope. At some point I am in a diff开发者_运维技巧erent thread and need to know whether the global object is currently locked by any threads.[详细]
2023-04-09 10:52 分类:问答ReaderWriteLockSlim or Lock
I m using ConcurrentBag to store object in run time. At some point I need to empty the bag and store the bag content to a list. This is what i do:[详细]
2023-04-09 09:48 分类:问答Using Control.Invoke() in place of lock(Control)
I am working on a multi-threaded application which needs to update a Winforms control as it progresses (A DataGridView). In order to prevent multiple access to the same shared resource, I started out[详细]
2023-04-08 21:11 分类:问答how to obtain a lock in two places but release on one place?
i\'m newbie in c#. I need to obtain lock in 2 methods, but release in one method. Will that work? public void obtainLock() {[详细]
2023-04-08 15:57 分类:问答Is it OK to use Monitor.TryEnter in event handler method?
I have EventHandler method which is called pretty often and it\'s body processing takes some time. Is it OK, to lock operations inside this handler it via Monitor?[详细]
2023-04-08 14:49 分类:问答How to implement my own locking mechanism
For an assignment (it\'s for concurrency if you wonder) - I have to implement my own lock (more specific: a TaS, a TTas and an Array-Lock, as described in \"The Art of Multiprocessor Programming\")[详细]
2023-04-08 05:37 分类:问答How to block inserts in SQL Server from the same user only - serializable isolation
I have the following table CREATE TABLE [dbo].[Test]([Id] [int] NOT NULL,[Name] [varchar](50) NOT NULL,[详细]
2023-04-08 02:17 分类:问答MEF/Unity Dependency Resolution failing on multiple threads
My web application uses Unity for DI. Another section of the webapp uses MEF. The code works fine in a single threaded session. But as soon as I click on the same link from two different web sessions[详细]
2023-04-08 02:02 分类:问答SVN-difference between lock on working copy of file and lock on repository file
What is the difference if I lock the file in the working copy that I have downloaded and the same file in the repository. The syntax is :[详细]
2023-04-07 16:02 分类:问答