Telegram Group & Telegram Channel
В чем разница между std::atomic::load() и std::atomic::exchange()?

👍 load() атомарно читает значение, exchange() атомарно заменяет и возвращает старое
🤔 load() блокирует потоки, exchange() не блокирует
👏 load() работает быстрее, exchange() безопаснее
🌚 load() не имеет побочных эффектов, exchange() изменяет все копии объекта



tg-me.com/cpp_interview_lib/855
Create:
Last Update:

В чем разница между std::atomic::load() и std::atomic::exchange()?

👍 load() атомарно читает значение, exchange() атомарно заменяет и возвращает старое
🤔 load() блокирует потоки, exchange() не блокирует
👏 load() работает быстрее, exchange() безопаснее
🌚 load() не имеет побочных эффектов, exchange() изменяет все копии объекта

BY Библиотека собеса по C++ | вопросы с собеседований


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/cpp_interview_lib/855

View MORE
Open in Telegram


telegram Telegram | DID YOU KNOW?

Date: |

What is Secret Chats of Telegram

Secret Chats are one of the service’s additional security features; it allows messages to be sent with client-to-client encryption. This setup means that, unlike regular messages, these secret messages can only be accessed from the device’s that initiated and accepted the chat. Additionally, Telegram notes that secret chats leave no trace on the company’s services and offer a self-destruct timer.

A project of our size needs at least a few hundred million dollars per year to keep going,” Mr. Durov wrote in his public channel on Telegram late last year. “While doing that, we will remain independent and stay true to our values, redefining how a tech company should operate.

telegram from sa


Telegram Библиотека собеса по C++ | вопросы с собеседований
FROM USA