I have COM written in Delphi 101 Berlin. And I am writing a script to call my API (only one API, single-threaded, and each takes about 1 minute to complete).
I am running the vbs file using cscript.exe (64-bit) (and here I am using a simple desktop ), many copies (so there are many processes) at the same time.
Nevertheless, I tested on many PCs (Windows 10 Pro), and it is observed that only about 1 core works, despite the fact that many of them have many cores.
For example, on my two processors ( HPZ800 Intel Xeon X5650 , 6 cores each = 12 cores), only 1 core is used,
If some scripts come out from an early time, then the use of the rest of the processors will be improved, but all together are added up to no more than 1 core.
My question is: how to write code to benefit from multiple cores?

source share