critical-section
Simple threading question, locking access to shared resource or entire function?
This is a paraphrasing of a question I had before. It\'s a simple threading question but I can\'t seem to understand it.[详细]
2023-02-08 15:50 分类:问答Large number of critical sections
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[详细]
2023-02-06 02:06 分类:问答WinAPI timed mutex lock
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[详细]
2023-02-05 05:08 分类:问答Why does my multi-threaded app sometimes hang when it closes?
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.[详细]
2023-02-01 22:36 分类:问答Multithreading and Critical Sections Use - C++
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[详细]
2023-01-30 04:19 分类:问答Scenario: Global variables in DLL which is used by Multi-threaded Application
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[详细]
2023-01-28 16:33 分类:问答critical section problem in Windows 7
Why does the code sample below cause one thread to execute way more than another but a mutex does not?[详细]
2023-01-20 16:53 分类:问答Java, multiple threads with only one executing at a time
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[详细]
2023-01-20 06:48 分类:问答COM - what does _pAtlModule->Lock() lock exactly?
I\'m working my way through learning writing a COM control.I\'ve got an example project, and it uses the lines[详细]
2023-01-15 21:11 分类:问答Can I nest critical sections? Is TCriticalSection nestable?
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[详细]
2023-01-14 09:57 分类:问答