Похожие чаты

So in short, I’m blind?

7 ответов

11 просмотров

Why do you care?

🖖- Автор вопроса
Ihor
Why do you care?

Was just curious

🖖
Was just curious

In general all threads that wait on the same variable should be the same. They just do the same job in parallel.

🖖- Автор вопроса
Ihor
In general all threads that wait on the same varia...

Gotcha 👌 Just to be sure, notify_all() wakes all of them up, even if they aren’t waiting on the same variable

🖖
Gotcha 👌 Just to be sure, notify_all() wakes all o...

Notify_all will wake all threads which waits on a same lock

🖖- Автор вопроса
kn07 _
Notify_all will wake all threads which waits on a ...

Now I’m getting confused... What if they don’t wait on the same condition_variable

🖖
Now I’m getting confused... What if they don’t wai...

Notify one /all are methods of condition_variable. Only threads that are blocked by it will get woken up.

Похожие вопросы

Обсуждают сегодня

Вопрос по диагностике ошибок (я знаю в чем, в данном конкретном примере, я знаю, как исправить, пример модельный, понятно, что в реальности бывает намного запутаннее). module...
ⰄⰎⰋⰐⰐⰑⰛⰤⰧⰧⰩⰄ ⰊⰑⰁⰓⰡⰛⰦⰕⰫ
10
Тут кста кто-нибудь NeoVim использует?
Simple Sorcerer
13
А чем вам питонисты не угодили?😂
.
79
Есть какой-нибудь для Delphi/FPC T*Compression(Decompression)Stream на базе LZ4/Zstd/любой другой быстрый(и хорошо сжимающий) алгоритм А ещё лучше в pure pascal А ещё лучше од...
notme
52
New Hedera drama. Is Hashinals on chain or not on chain?
Perfect Ability
15
Can someone explain me the difference of the stated quote on Quants homepage between R3 and Quant? „R3 brings its ability to deliver complex pioneering projects for regulate...
Carlson
2
Asus, норм фирма для ноутов?
Артем Записной
20
guys, why is it taking days for my node to sync? is this normal?
Big Chiano
10
А дальше что?.. Записать в файл, потом в Код?.. И потом разбирать как-то?..
Хаскель Моисеевич Гопник
14
Ребят немного глупый вопрос, но я правильно понимаю что неполнота по геделю означает наличие парадокса?
Smith
9
Карта сайта