Thanks for the comments....
"I think what it means when an STL is not thread safe is that the objects aren't built to synchronize themselves between threads. So it doesn't necessarily mean you can't use them correctly in a threaded program, but you have to do any synchronization...
"It is just a coincidence that it is working."
But, Its showing consistent behaviour when thread count is less than 8( no. of CPUs ). Have you ever heard of anything like the no. of threads, an application can have in UNIX should be less than the no. of CPUs. I dont agree with this...
Hi,
I have an application which runs on HP-UX11i ( 8 processor machine ). From my application, I am spawning 16/20 threads for doing a heavy processing job. Actualy I am threading a method of one of my classes like this:
int j = pthread_create( &threadId, NULL, CMyClass::ProcessThrFunc...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.