Computer Science, asked by vijayrockzz6017, 9 months ago

Use std::atomic for concurrency, volatile for special memory

Answers

Answered by itzBrainlyBoy
0

Answer:

plz ma%k as brainliest........xD

Attachments:
Answered by Anonymous
0

Answer:

✨ ☑ std::atomic vs. volatile

  1. std::atomic is for data accessed from multiple threads without using mutexes. It's a tool for writing concurrent software.
  2. volatile is for memory where reads and writes should not be optimized away. It's a tool for working with special memory.
Similar questions