Alaska Software Inc. - Xbase++/2
Username: Password:
AuthorTopic: Xbase++/2
AUGE_OHRXbase++/2
on Tue, 29 Mar 2011 17:45:59 +0200
Osvaldo Ramirez Re: Xbase++/2
on Tue, 29 Mar 2011 12:46:17 -0600
hello Jim

I tested with an Xbase++ app, and I can confirm that it hang with 2 CPU's...

With VXB it work.

Regards
Osvaldo Ramirez

On 3/29/2011 9:45 AM, AUGE_OHR wrote:
> hi,
> in Taskmanager i can set "Affinty" of CPU. On a "multi" CPU System "all"
> CPUs are enable.
> when using Xbase++ it allways use only 1 CPU.
> when try to "switch" to other CPU or "enable" 2nd CPU while running,
> hole Application "hang"
> while also CMD.EXE use both CPU i can run Cl*pper Application on 2 CPUs.
> so why can´t use Xbase++ more than 1 CPU ... or is it Inherited from ...
> -> Xbase++/2
> greetings by OHR
> Jimmy
Pascal BoivinRe: Xbase++/2
on Tue, 29 Mar 2011 22:39:04 +0200
Hi

You must select the appropriate CPU from within your app. Look at 
C:\ALASKA\XPPW32\source\samples\solution\smp

With 1.90.342, Application are slower with 2 CPU!  I have not tried
newer version.

There was some discussion about this on the NG but I don't remember how
it end.
AUGE_OHRRe: Xbase++/2
on Wed, 30 Mar 2011 00:38:31 +0200
hi,

> You must select the appropriate CPU from within your app. Look at
> C:\ALASKA\XPPW32\source\samples\solution\smp

what did you get when press "3" ?

*** Quote ***
* 1 = Nur Erste CPU, 2 = 2. CPU, 4 = 3. CPU, 16 = 8. CPU
* 3 = 1. + 2. CPU
*** eof ***
i guess you got 1st CPU "only", not 1st + 2nd CPU as Sample say.


> With 1.90.342, Application are slower with 2 CPU!

as i say : Xbase++ Sl1 v1.9.355 can NOT run with more than 1 CPU

> There was some discussion about this on the NG

i did read it, but it was about "internal" SMP.

"Affinity" can be set from OS() like in a CMD Box ( Vista / Win7 )
c:\windows\system32\cmd.exe /C start /affinity 1 notepad.exe
so it is OS() not the Application.

on modern System OS() will "manage" CPU when i start a Application.
while even CMD.EXE can use 2 or more CPU, why cant Xbase++ ?

no Wonder why Xbase++/2 is so slow ...

greetings by OHR
Jimmy
Peter AlderliestenRe: Xbase++/2
on Wed, 30 Mar 2011 09:39:45 +0200
Jimmy,

> in Taskmanager i can set "Affinty" of CPU. On a "multi" CPU System "all" CPUs are enable.
> when using Xbase++ it allways use only 1 CPU.
> when try to "switch" to other CPU or "enable" 2nd CPU while running, hole Application "hang"

This has been discussed previously in this newsgroup.
Xbase++ is able to use different processors, but more then one processor at
the same time actually slows the application. I believe it's because the
overhad that Xbase++ needs to spread the load.
You can, however, switch from one to another whenever you want. There's
sample code for this as well.
I use as a strategy that every time my application starts, it uses the
different/next processor. That seems to work pretty well.

Peter
AUGE_OHRRe: Xbase++/2
on Wed, 30 Mar 2011 19:27:02 +0200
hi,

> This has been discussed previously in this newsgroup.

NO, ist was about SMP "setting" in a Application.

i talk about Vista/Win7 OS() where "affinity" is "build-in"

http://www.howtogeek.com/howto/windows-vista/start-an-application-assigned-to-a-specific-cpu-in-windows-vista/

> Xbase++ is able to use different processors, but more then one
> processor at the same time actually slows the application.

NO, Xbase++ v1.9.355 wil not run on more that 1 CPU

>I believe it's because the overhad that Xbase++ needs to spread the load.

so tell me why Cl*pper or harbour or Foxpro or ANY other Programm
can do it and use "all" CPUs

> You can, however, switch from one to another whenever you want. There's
> sample code for this as well.

this is is "Differenz" i talk about. You do "set" your Application to
a "spezial" CPU while i talk about Vista/Win7 "build-in" switch

> I use as a strategy that every time my application starts, it uses the
> different/next processor. That seems to work pretty well.

as i say what do you get when use "3" in Sample ?
C:\ALASKA\XPPW32\source\samples\solution\smp

greetings by OHR
Jimmy
AUGE_OHRRe: Xbase++/2
on Wed, 30 Mar 2011 20:06:33 +0200
more Sample

http://www.robpol86.com/index.php/ImageCFG

when you start it with you Xbase++ Application it will show "Subsystem 
Version of 4.0"
but "actuell" is "Subsystem Version of 6.1" ( Win7 / W2K8 )

greetings by OHR
Jimmy
Peter AlderliestenRe: Xbase++/2
on Fri, 01 Apr 2011 09:36:11 +0200
Jimmy,

> as i say what do you get when use "3" in Sample ?
> C:\ALASKA\XPPW32\source\samples\solution\smp

You're right.
Selecting 3 should select both processors, but does have no effect on my
Win7 machine.

Peter