Board index » cppbuilder » wonderful Threads
2004-05-20 05:31:47 PM
Question 1. If i have a vector holding a bunch pointers of threads, do i
need to synchronize or lock before reading a value of a thread from the
vector? e.g. myvec[i]->GetThreadVal(); It seems to work fine, but i'm not
sure if its part or total cause to Question 2 below.
Question 2: I am finding that when i open 15 or more threads, and minimize
the app, on maximize the application soaks up all the cpu. Not sure if this
is thrashing - can i tell from looking at the page faults? How is it
possible to cure this? Thread pool perhaps?
Any suggestions more than welcome.
Thanks in advance, Angus.