This is a paraphrasing of a question I had before. It\'s a simple threading question but I can\'t seem to understand it.
Environment: C++,VS 2008, MFC, app for Windows XP. I have to access & modify a tree structure in 2 threads. My idea is to protect each node with an CCriticalSection that would lo开发者_C百科ck eac
How to lock mutex (critical section) for some amount of time? Is there any API function for 开发者_如何学编程that? As far as I see there is nothing like that in windows. If so, is it possible to imple
I\'m using several critical sections in my application. The critical sections prevent large data 开发者_JAVA百科blobs from being modified and accessed simultaneously by different threads.
I\'m a little confused as to the proper use of critical sections in multithreaded applications.In my applicat开发者_开发知识库ion there are several objects (some circular buffers and a serial port obj
Few months back, I had come across this interesting scenario asked by a guy (on orkut). Though, I\'ve come up with a \"non-portable\" solution to this problem (have tested it with small code), but sti
Why does the code sample below cause one thread to execute way more than another but a mutex does not?
I am working on an assignment and have to create two classes, one represents a person, and the other representing a bridge. Only one person can be \"crossing\" the bridge at any one time, but there co
I\'m working my way through learning writing a COM control.I\'ve got an example project, and it uses the lines
I want to have two procedures which can call each ot开发者_开发技巧her, or be called from whatever threads are running, but only have one running at a time. How can I do this? Will this work correctly