Use std::atomic for concurrency, volatile for special memory
Answers
Answered by
0
Answer:
plz ma%k as brainliest........xD
Attachments:
Answered by
0
Answer:
✨ ☑ std::atomic vs. volatile
- std::atomic is for data accessed from multiple threads without using mutexes. It's a tool for writing concurrent software.
- volatile is for memory where reads and writes should not be optimized away. It's a tool for working with special memory.
Similar questions
English,
5 months ago
Science,
5 months ago
Computer Science,
10 months ago
Math,
1 year ago
Science,
1 year ago