atomic
Is gcc's atomic test and set builtin the same as an atomic fetch and store operation?
I came across an atomic \"fetch and store\" instruction in the description of an MCS 开发者_如何学Clock.[详细]
2023-02-21 16:24 分类:问答Java: is there no AtomicFloat or AtomicDouble?
I have found AtomicInteger, AtomicLong, but where is AtomicFloat (or AtomicDouble)? Maybe ther开发者_如何学JAVAe is some trick?The API docs for the java.util.concurrent package states the following:[详细]
2023-02-21 09:55 分类:问答Erlang digraph atomicity and isolation guarantees
Are digraph atomicity and isolation guarantees described anywhere? Especially: What state will another process see digraph in, if another 开发者_高级运维process tries to access it (vertices(), out[详细]
2023-02-21 08:19 分类:问答Anything wrong with this way to implement atomic doubles/longs/datetimes/nullables?
You can\'t declare a double, long, DateTime, any nullable or any other structs as volatile (it wouldn\'t work if you could because writes aren\'t atomic), but in my particular case I need a volatlie,[详细]
2023-02-20 15:05 分类:问答Update Two Related Files On Disk In a "Secure" Way?
I have two binary files that are related one to another (meaning, when one file\'s records are updated, the other file\'s matching records should be updated as well). both files are bin开发者_开发知识[详细]
2023-02-20 08:33 分类:问答CUDA: Atomic operations on unsigned chars
I\'m a CUDA beginner. I have a pixel buffer of unsigned chars in global memory that can and is updated by any and all threads. To avoid weirdness in the pixel values, therefore, I want to perform an a[详细]
2023-02-20 05:38 分类:问答How to implement a hierarchical lock or other synchronization pattern?
I have a series of logically connected collections of A, B and C objects, that are accessed by 开发者_StackOverflow中文版writer threads, reading-only threads and read-write threads.[详细]
2023-02-16 07:08 分类:问答Restarting agent program after it crashes
Consider a distributed bank application, wherein distributed agent machines modify the value of a global variable : say \"balance\"[详细]
2023-02-16 02:12 分类:问答is boost::detail::atomic_count thread safe?
I\'m incrementing/decrementing boost::detail::atomic_count in multiple threads. Wonder if this practice is ok or if I need a lock around it(th开发者_开发百科en I could just use regular int variable)?[详细]
2023-02-15 18:47 分类:问答Multiple commands atomically
I\'m using PHP and MySQL to call a couple of commands. There is a group-employee cross-reference table, and employees may be added or removed from the group. I\'m writing this feature by first re开发者[详细]
2023-02-09 20:52 分类:问答