Yeah, I might need to look up examples about serializing small loops. I have not heard that before so I may have that problem.
Making an application multi-threaded is only half the fun, you then have to make sure that its properly accessing data.
I don't know all the technicals about it, but I believe after a certain amount of threads, then you're not really optimizing at all because of the context switching.
I think I have a low enough amount that it's giving me a small performance boost. At least its making the client look like its running smoother :P
All 4 of my content loading threads run off of the same queue. And when an object is put in there, one of them takes it, loads it. Most of the time it's the first content loading thread doing the work, but the other 3 are basically backup. I am using a wait signal so they're pretty much idle
threads until needed.
---
http://www.addipop.com