+ 3

What is exactly "volatile" for in c++?

I'm wondering that why we use volatile qualifier in c++? When we used this for some types of variables, we dont actually need to mutex that variable? Volatile helps us about it? Can we use this in multithreading programming for some variables? Is this safe? I really need a clear explanation about "volatile qualifier" Thanks all...

8th Jan 2021, 6:38 AM
Yunus Temurlenk
Yunus Temurlenk - avatar
4 Réponses
+ 2
Alphin K Sajan thanks for ur reply but this answer not enough for me. Also i have different questions
8th Jan 2021, 6:41 AM
Yunus Temurlenk
Yunus Temurlenk - avatar
8th Jan 2021, 6:47 AM
Alphin K Sajan
Alphin K Sajan - avatar