Home > database >  PB9 how to implement multithreaded
PB9 how to implement multithreaded

Time:10-02

I now have a 10000 article data window, now want to start the two threads:

Thread 1: data processing line 1-5000

Thread 2: processing line data from 5001-10000

Please advise m, multiple occurrences of multithreading approach is not online, always crash!

CodePudding user response:

Look at this example
http://downloads.sybase.com/codexchange/powerbuilder/793/WigglyWorms (PB9). Zip
Or example
http://downloads.sybase.com/codexchange/powerbuilder/793/sharedcount.zip
Or this example
http://downloads.sybase.com/codexchange/powerbuilder/793/threads.zip
Two exe or writing,

CodePudding user response:

up

CodePudding user response:

Pb in multithreaded processing principle and the way it is a single fixed, in addition to invoke the 3rd party tools or other distributed processing, basic there is no other way of thinking, so you say the problem could be the specific code...

But look from your description on the problem may not be the multithreading, but on the database processing, such as transaction \ lock issue, etc...

CodePudding user response:

Asynchronous to implement multithreading in the POST

CodePudding user response:

Look at this example
http://downloads.sybase.com/codexchange/powerbuilder/793/WigglyWorms (PB9). Zip
Or example
http://downloads.sybase.com/codexchange/powerbuilder/793/sharedcount.zip
Or this example
http://downloads.sybase.com/codexchange/powerbuilder/793/threads.zip
Two exe or writing,

CodePudding user response:

Is too difficult,
  • Related