critical-section
How can I use a transactional database to create a critical section?
Say I have 2 servers that talk to the same transactional database. I want to set it up such that only one of these two servers will perform a given timed action (essentially using the database to enf[详细]
2023-03-16 23:33 分类:问答.crt section? What does this warning mean?
I\'ve got this warning recently (VC++ 2010) warning LNK4210: .CRT section exists; there may be unhandled static initializers or terminators[详细]
2023-03-16 14:31 分类:问答Difference between interlocked variable access AND critical sections interlocked increment
can someone help explain the different between interlocked variable access AND critical sections interlocked incr开发者_运维技巧ement in c++? thanks, much appreciated, in advance.Basically, all those[详细]
2023-03-15 14:05 分类:问答Fair critical section (Linux)
On a multi-threaded Linux application I use a mutex for critical sections. This works very well except for the fairness issue. It can happen that a thread leaving a critical section and re-entering ri[详细]
2023-03-15 00:42 分类:问答Accessing the C++ COM dll from Webservice
I am using a COM dll from a web service. The COM开发者_如何学运维 dll is added as reference. And I am declaring the object as static in Global.asax.[详细]
2023-03-12 05:34 分类:问答Reading and writing using same critical section object
I need to write a class which reads from and writes to a file. When I do a write operation, read should not take place and also vice versa. Can I use a single critical section object for that? Like th[详细]
2023-03-11 05:32 分类:问答What happens when kernel code is interrupted?
I am reading Operating System Concepts (Silberschatz,Galvin,Gagne), 6th edition, chapter 20. I understand that Linux kernel code is non preemptible (before 2.6 version). But it can be interrupted by h[详细]
2023-03-08 23:25 分类:问答Unhandled exception / Access violation writing location in a Mutex example
I\'m working through an example of protecting a global double using mutexes, however I get the error -[详细]
2023-03-05 04:57 分类:问答CRITICAL_SECTION in boost?
is there something in boost th开发者_开发知识库at translates to windows CRITICAL_SECTION? CRITICAL_SECTION is a so called \"user mode\" mutex that uses spin locks instead of blocking and avoids expens[详细]
2023-03-03 22:37 分类:问答Critical Section change in behavior in Windows 2003 SP1
Today I came across this in MSDN: \"Starting with Windows Server 2003 with Service Pack 1 (SP1), threads[详细]
2023-03-01 12:51 分类:问答