1. wu dragon
  2. PowerBuilder
  3. Monday, 22 November 2021 08:04 AM UTC

你好:

請教一下,下面的觀念是不是正確?

PowerBuilder 8:
1. 若在多核心的CPU執行,有些指令動作是會在多核心執同時執行
2. 單執行緒
3. 32元位的AP


PowerBuilder 11.5:
1. 若在多核心的CPU執行,有些指令動作是會在多核心執同時執行
2. 多執行緒
3. 32元位的AP


PowerBuilder 2021:
1. 若在多核心的CPU執行,有些指令動作是會在多核心執同時執行
2. 多執行緒
3. 64元位的AP

Accepted Answer
Ken Guo @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 24 November 2021 09:24 AM UTC
  2. PowerBuilder
  3. # Permalink

Hi Dragon,

PB是單線程的,不論是PB 8還是PB 2021,都是如此。當然你可以參照Bruce回复的那樣進行多線程開發。

目前所有版本的PB IDE都是32-bit的,所以如果在PB IDE下運行應用時,它是32-bit的;當然你可以通過PB 12.6/2017/2019/2021 將你的應用程序編譯成64-bit的EXE。 

 

Regargs,

Ken

 

 

Comment
There are no comments made yet.
wu dragon Accepted Answer Pending Moderation
  1. Thursday, 25 November 2021 02:15 AM UTC
  2. PowerBuilder
  3. # 1

你好:

謝謝您的回答!

關於使用 CPU 核心數的部份

使用 Powerbuilder 編譯出來的程式

執行時會利用到幾個 CPU 的 核心 是不是跟 Powerbuilder 無關?

使用到幾個核心主要是由CPU或作業系統依指令分配完成的嗎?

每個版本的 Powerbuilder 編譯出來的程式都有可能在多核心執行

 

 

Comment
  1. Ken Guo @Appeon
  2. Thursday, 25 November 2021 07:16 AM UTC
是的,執行時利用到幾個 CPU 的核心跟 Powerbuilder 無關,这个是由Windows OS来分配的。
  1. Helpful
There are no comments made yet.
Bruce Armstrong Accepted Answer Pending Moderation
  1. Monday, 22 November 2021 23:46 PM UTC
  2. PowerBuilder
  3. # 2

The question according to Google translate:

==========================================================================

Please tell me, is the following concept correct?

PowerBuilder 8:
1. If executed on a multi-core CPU, some instruction actions will be executed simultaneously on the multi-core execution
2. Single thread
3. 32-bit AP


PowerBuilder 11.5:
1. If executed on a multi-core CPU, some instruction actions will be executed simultaneously on the multi-core execution
2. Multi-threading
3. 32-bit AP


PowerBuilder 2021:
1. If executed on a multi-core CPU, some instruction actions will be executed simultaneously on the multi-core execution
2. Multi-threading
3. 64-bit AP

==========================================================================

My answer:

PowerBuilder is single threaded unless you use shared objects to implement multithreading.  According to the techno-kitten history of PowerBuilder changes, shared objects were added in PowerBuilder 6, so that version and later should be able to do it.

https://community.appeon.com/index.php/qna/q-a/multi-threading-in-powerbuilder

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.