Is it STL thread-safe?

C

cai

Hi, I wonder if STL is thread-safe or how can I feel safe if I share a STL
container in mutiple threads.
I use VC++6.0.
Thank you!
 
D

Dhruv

On Fri, 04 Jul 2003 08:03:07 -0700, Russell Hanneken wrote:

[snip]......
You're not the first person to ask:

http://tinyurl.com/g18o

I'd like to know what exactly you mean what you say that something is
thread safe. Until now, I was thinking that it meant that it can be used
across threads without the fear of reading a value being modified, or
simultaneously writing to the same variable/resource. But, does it mean
that the code is amenable to mutex protection, as in if you put a mutex
around that piece of code, then it will work with multiple threads?

Regards,
-Dhruv.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top