开发者交流平台
开发者交流平台

通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。

bj
登录
  • 友情链接
站内
atomic

atomic

go

Do I always need to protect a variable by mutex / atomic?

英文: Do I always need to protect a variable by mutex / atomic? 问题 假设我有很多线程和一个简单的、可平凡复制的非数组变量(如float、u...
huangapple 2023年8月9日191评论c++ multithreading
go

如何在C++中编写Cortex-M4上的原子RMW序列

英文: How to write atomic RMW-sequences on Cortex-M4 in C++ 问题 在下面的示例中,有4个版本用于原子递增(或使用其他形式的原子操作)变量a1或a...
huangapple 2023年8月8日182评论atomic c++
go

__sync_add_and_fetch 在树莓派 4b 上触发了 sError 中断。

英文: __sync_add_and_fetch triggers an sError interrupt on raspberry pi 4b 问题 当我在我的树莓派 Pi 4B 上使用 gcc 的...
huangapple 2023年8月5日140评论atomic memory
go

What happens if `compare_exchange_weak` is called on a dangling pointer? How is the code in my textbook safe?

英文: What happens if `compare_exchange_weak` is called on a dangling pointer? How is the code in my t...
huangapple 2023年7月14日151评论c++ concurrency
go

在没有任何同步的情况下,通过松散原子操作选择更新值是否安全?

英文: Is it safe to non-atomically update a value selected by relaxed atomic operation without any syn...
huangapple 2023年7月13日156评论c++ multithreading
go

关于给定示例的内存排序问题?

英文: Memory ordering questions on given example? 问题 以下是翻译的内容: 可以 read_and_write_non_atomic_memory_1_b...
huangapple 2023年7月3日135评论atomic rust
go

关于C++内存顺序:如何确保其他线程安全地访问共享资源?

英文: About c++ memory order: how to keep other threads to access common resources safely? 问题 This is ...
huangapple 2023年6月29日158评论atomic c++
go

编译器能够合并原子存储吗?

英文: Can the compiler coalesce atomic stores? 问题 以下是翻译好的内容: GCC、MSVC和clang都会生成两个像这样的mov指令: store2(): ...
huangapple 2023年6月15日135评论c++ c++20
go

什么是用于动态调度的正确std::atomic内存顺序?

英文: What is the right std::atomic memory order for dynamic scheduling? 问题 我在思考经典的“原子计数动态调度”习语的正确内存顺序...
huangapple 2023年6月15日145评论c++ multithreading
go

这个C++代码为什么会因为明显的内存顺序竞争而崩溃?

英文: Why does this C++ code crash with an apparent memory ordering race condition? 问题 这段代码在x64上偶尔崩溃的原...
huangapple 2023年6月9日153评论c++ mutex

文章导航

1 2 3 … 7
name
开发者交流平台
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
文章117266 留言 4 访客16987692

热门标签

arrays spring-boot android javascript sql spring flutter node.js css json c++ c# reactjs html go java pandas typescript python r

悟已往之不谏,知来者之可追!

今日
00%
已00小时
本周
00%
已过00天
本月
00%
已过00天
今年
00%
已是00月

Copyright ©  开发者交流平台 版权所有.

闽 ICP 备 2022019110 号 - 1
  • 开发者交流平台

    本页二维码