critical-section
How to share single critical section between two classes
I have some trouble finding the right design solution for a problem of sharing same critical section object between two classes in different class hierarchies.[详细]
2023-02-26 00:57 分类:问答Creating a mutex like program using CriticalSection
e.g. EnterCriticalSection ( cs ); LeaveCriticalSection ( cs ); I want to create a functi开发者_StackOverflow社区on locking it and release if invoke your function call or leave the object.[详细]
2023-02-25 00:51 分类:问答What exactly is a critical section?
Just want a little clarity on the this. Imagine I use the windows api of EnterCriticalSection.I call all of them with EnterCriticalSection(&criticalsection);[详细]
2023-02-23 13:45 分类:问答Is it safe to access VT data from the other thread?
Is it safe to change VirtualTreeView data from the secondary thread ? And if yes, should I use critical sections (or even Synchronize method) ?[详细]
2023-02-22 16:43 分类:问答When should I use critical sections?
Here\'s the deal. My app has a lot of threads that do the same thing - read specific data from huge files(>2gb), parse the data and eventually write to that file.[详细]
2023-02-18 21:42 分类:问答Distributed critical section in web-farm
I have about 50 web-sites, load-balanced across 5 web-servers. They all use Enterprise Library Caching, and access the same Caching database. The items in the Caching database are refreshed every few[详细]
2023-02-17 21:42 分类:问答What happens when a process enters a semaphore (critical section) and sleeps?
As per my understan开发者_运维问答ding, when a process enters a critical section, no other process can simultaneously enter. But i see, by a program, that it is not.[详细]
2023-02-16 18:34 分类:问答Why is DeleteCriticalSection so much slower than InitializeCriticalSection?
I have more than 20000 CriticalSections need to delete when application close or serivce stop. But I found the DeleteCriticaSection function i开发者_如何学Cs very slow. I do a test:[详细]
2023-02-16 03:25 分类:问答does my solution satisfy the requirements for a mutual exclusion
i wrote 2 processes in order to satisfy mutual exclusion but om not sure if it is.. my initial flag value is 0.[详细]
2023-02-14 10:34 分类:问答Critical sections better in thread or main program?
I use to use critical section (in c++) to block theads execution whilel accessing shared data, but as to work them must need to wait unti开发者_如何学JAVAl data is not used before blocking, maybe it\'[详细]
2023-02-12 04:28 分类:问答
加载中,请稍侯......