At the moment, PureBasic can only make use of 50% of my CPU's power. I've got a P4 3GHz with Hyperthreading. If PureBasic were to support a dual-processor environment, then I'd get 6GHz of performance.
Dual-Processor Support
-
Barliesque
- New User

- Posts: 1
- Joined: Sun Sep 21, 2003 9:30 pm
Dual-Processor Support
There probably aren't that many users out there with two processors in their machines, but with Pentium's Hyperthreading--which simulates a dual-processor machine--there are going to be more and more users who have this kind of power.
At the moment, PureBasic can only make use of 50% of my CPU's power. I've got a P4 3GHz with Hyperthreading. If PureBasic were to support a dual-processor environment, then I'd get 6GHz of performance.
At the moment, PureBasic can only make use of 50% of my CPU's power. I've got a P4 3GHz with Hyperthreading. If PureBasic were to support a dual-processor environment, then I'd get 6GHz of performance.
there was some one that tried doing this through threading, i think he succedded
heres the link viewtopic.php?t=7409
heres the link viewtopic.php?t=7409
~Dreglor
LOL!At the moment, PureBasic can only make use of 50% of my CPU's power. I've got a P4 3GHz with Hyperthreading. If PureBasic were to support a dual-processor environment, then I'd get 6GHz of performance.
Hyperthreading does not double performance. What it does is very complex and I am not going into it here, but here is a good primer.
To take advantage of dual processors or Hyperthreading, you make two threads and split the workload between them. That is all there is to it, the OS takes care of the rest. So pure basic DOES support Hyperthreading and probably supports it better than most other languages. How do you do multiple threads in C? I bet it is a lot harder than PureBasic.
Hyperthreading on a P4 3Ghz does not give you 6Ghz power ! LOL
The best performance gain i see so far was about 15 percent.
Note that some apps that use floating point heavely can even slow down with hyperthreading.
Even two real CPU's dont give 200 percent performance, the best factor is about 160-170 percent under w2k (NT4 was about 150 to 160)
Adding a 3de and 4the CPU will add even less performance!
I tested PureBasic on a QUAD P4 XEON machine with w2k server one year ago, it works fine.
It was just a simple test though, I created some extra threads that did some calculations (no strings) and a could see the CPU load in the task manager performance screen very nicely
It wil be very easy to use if Fred manages to fix this string problems in threads
The best performance gain i see so far was about 15 percent.
Note that some apps that use floating point heavely can even slow down with hyperthreading.
Even two real CPU's dont give 200 percent performance, the best factor is about 160-170 percent under w2k (NT4 was about 150 to 160)
Adding a 3de and 4the CPU will add even less performance!
I tested PureBasic on a QUAD P4 XEON machine with w2k server one year ago, it works fine.
It was just a simple test though, I created some extra threads that did some calculations (no strings) and a could see the CPU load in the task manager performance screen very nicely
It wil be very easy to use if Fred manages to fix this string problems in threads
Berikco



