Is map thread safe c++?



Is map thread safe c++?..

Answer / Vipin Kumar Singh

No, by default, the C++ Standard Library's map container is not thread-safe. However, it can be made thread-safe by using std::mutex or other synchronization primitives.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

Is c++ vector a linked list?

1 Answers  


Write my own zero-argument manipulator that should work same as hex?

1 Answers  


What's the hardest coding language?

1 Answers  


Write about the role of c++ in the tradeoff of safety vs. Usability?

1 Answers  


Explain friend class?

1 Answers  


Why is null pointer used?

1 Answers  


C is to C++ as 1 is to a) What the heck b) 2 c) 10

1 Answers  


Q1 On the screen how do you write the following words? she sells seashells by the seashore (a) all in one line (b) in three lines Q2 Write a program that asks interactively the user’s name and age and responds with Hello name, next year you will be next_age. where next_age is age + 1 Q3 For the different values of n, what is the output? printf(“%x %c %o %d”,n,n,n,n); (a) n = 67 (b) n = 20 (c) n = 128 (d) n = 255 (e) n = 100 Q4 What will be the output of the following program? int main() { char a,b,c; scanf(“%c %c %c”,&a,&b,&c); printf(“a=%c b=%c c=%c”,a,b,c); return 0; } [Note: The user input is:ABC DEF GHI]

1 Answers  


In the derived class, which data member of the base class are visible?

1 Answers  


How can I learn c++ easily?

1 Answers  


What is istream and ostream in c++?

1 Answers  


What causes a runtime error c++?

1 Answers  


Categories