I\'m working with C# on two types of applications. One is a web service one is a MVC3 application. I have the same problem with both. I am trying to create a method that when requested, returns a rec
elI have two types of nodes. One is a coordinator 开发者_运维知识库and another is a worker node.
I have a class which contains a BYTE*, a reference counter and a CRITICAL_SECTION which protects both of them from concurrent access.
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
I am writing some code with CFLOCK tags, and am at a point where my code would return somewhere within a CFLOCK.Example:
I\'m trying to develop an application that consists of a pool of threads, using a work-stealing algorithm to concurrently execute tasks.
I have开发者_如何学C implemented peterson\' algorithm for mutual exclusion in shared memory. I am using shared memory between a c++ and a java process(using jni) for communication. The problem is that
How can I set a trigger on a ComboBox that when the SelectedIndex is greater than 0 (basically, when an option is selected) another ComboBox gets modified. What I have are two ComboBoxes but the user
@Jusit suggested I use a global object to pass data from a background thread to an activity and it worked. But now I am worried about deadlock and if there is a good way to avoid/prevent it. Also I am
i wrote 2 processes in order to satisfy mutual exclusion but om not sure if it is.. my initial flag value is 0.