Freak,
Has this issue been addressed in PB4.30?
Thanks
Why are threads slower?
I don't want to intrude on what is an interesting thread, but I have a dumb question. I was always of the opinion that the purpose of multiple threads was so different parts of the application could basically run independant of each other so as not to detrimentally affect the operation of other parts, not to increase speed?
Personally, I usually use threads for network apps or things where serially it can take a long time but not add much load by doing in tandem. Considering if you want to ping 1000 systems that are 500ms away. Threads will do this a lot faster and not really touch the CPU much more.
In this case, I was building a benchmark tool and in the last case I hit the random() issue a gomoku game. I needed more CPU and multi cores were available.
For the benmark, I specifically wanted to measure the inprovement of 4 cores vs 1 so I had to use threads, for the game, the competition ran on a dual core server and doubling my CPU meant more depth in the alpha-beta prunned minimax search of the game tree and therefor a stonger contender.
For some apps, you want speed now and at the expense of others if needed, in these situations if you have a quad core, you are disappointed to max the app out on 25% of the system power.
The benchark showed I was getting about 5x-6x more power on my quad core with 16 threads as one thread didn't get 1 whole core to itself, I don't want that for all apps, but if I'm doing video conversion it'd be nice to use more
In this case, I was building a benchmark tool and in the last case I hit the random() issue a gomoku game. I needed more CPU and multi cores were available.
For the benmark, I specifically wanted to measure the inprovement of 4 cores vs 1 so I had to use threads, for the game, the competition ran on a dual core server and doubling my CPU meant more depth in the alpha-beta prunned minimax search of the game tree and therefor a stonger contender.
For some apps, you want speed now and at the expense of others if needed, in these situations if you have a quad core, you are disappointed to max the app out on 25% of the system power.
The benchark showed I was getting about 5x-6x more power on my quad core with 16 threads as one thread didn't get 1 whole core to itself, I don't want that for all apps, but if I'm doing video conversion it'd be nice to use more
Paul Dwyer
“In nature, it’s not the strongest nor the most intelligent who survives. It’s the most adaptable to change” - Charles Darwin
“If you can't explain it to a six-year old you really don't understand it yourself.” - Albert Einstein
“In nature, it’s not the strongest nor the most intelligent who survives. It’s the most adaptable to change” - Charles Darwin
“If you can't explain it to a six-year old you really don't understand it yourself.” - Albert Einstein
There is no "purpose" of threads. They're just there - use them for whatever you want.SFSxOI wrote:I don't want to intrude on what is an interesting thread, but I have a dumb question. I was always of the opinion that the purpose of multiple threads was so different parts of the application could basically run independant of each other so as not to detrimentally affect the operation of other parts, not to increase speed?


