in reply to Re^2: Sun Solaris (SPARC processor) + Threads + performance/optimization
in thread Sun Solaris (SPARC processor) + Threads + performance/optimization
As you said, what I've said above is bogus, I'm not writing to a single file, but to one different file per Thread.
You're also right in the remaining comment. I'm not taking advantage of the CPU because I serialize the processing.Because all the threads are competing for a lock on the same single data structure, so only one thread will ever doing anything useful at any given time. There are simple ways of avoiding this problem, but which is applicable depends upon what you are doing in your program.Your comment in this node is quite clear. Tomorrow I will change the code and do some more tests...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Sun Solaris (SPARC processor) + Threads + performance/optimization
by BrowserUk (Patriarch) on Apr 16, 2009 at 23:40 UTC | |
by gulden (Monk) on Apr 23, 2009 at 10:21 UTC |