atomic
When to use volatile with multi threading?
If there are two threads accessing a global variable then many tutorials say make the variable volatile to prevent the compiler caching the variable in a register and it thus not getting updated corre[详细]
2023-02-01 11:51 分类:问答how to do an atomic copy of 128-bit number in gcc inline x86_64 asm?
I haven\'t done assembly since school (eons ago) and have never done any x86, but I have found a pesky bug in old existing code where somebody isn\'t doing an atomic op where they should be.The person[详细]
2023-01-31 04:40 分类:问答Is there a way to ensure atomicity with an operation in C?
I want this statement (within the body of the if statement) to be atomic: if(I2C1STATbits.P || cmd_buffer_ptr >= CMD_BUFFER_SIZE - 1)[详细]
2023-01-30 04:49 分类:问答is update with left join will lock all MyIsam tables mysql?
I am doing a table update in mysql including 2 left join on other tables. This is all MyIsam tabl开发者_运维百科es.[详细]
2023-01-29 18:05 分类:问答Trouble finding race condition in locking code with atomics & futexes
I\'m having a horrible time trying to debug a race-condition-causing-deadlock in my Linux-futex & atomic-ops based locking primitives. Here\'s the code I\'m working with (exact same logic as the r[详细]
2023-01-28 18:08 分类:问答Overhead of using locks instead of atomic intrinsics
Does anyone know of published benchmarks of the overhead of locking instead of relying on certainly atomic operations/intrinsics (on a multiprocessor system) only?[详细]
2023-01-27 20:27 分类:问答Is non-atomic value SELECT specific to SQL Server or it is possible in other DBMS-es?
My answer to my question Is a half-written values reading prevented when SELECT WITH (NOLOCK) hint? cites a script illustrating catching non-atomic reads (SELECTs) of partly-updated values in SQL Serv[详细]
2023-01-27 18:04 分类:问答Simple bulk data persistance framework
Is there an ACID framework for bulk data persistance, which would also allow some basic search capabilities? I am not looking for a full blown DBMS, but rather something fast, light and simple. Even s[详细]
2023-01-27 03:43 分类:问答Interlocked ops vs XXX::atomic on Win32
What are the advantages and disadvantages of using Interlocked winapi functions instead of any library provides atomic operations on Win32 platform?[详细]
2023-01-26 21:21 分类:问答"Atomic section" in Ruby MongoDB driver?
Is there a way to perform a set of non-atomic actions on MongoDB server (using the Ruby driver) as an single atomic action? What I need is basically a lo开发者_如何学Pythonck on certain object/collect[详细]
2023-01-26 01:54 分类:问答
加载中,请稍侯......