Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15223

Has anyone written the thread pool module of VB6?

$
0
0
In fact, for simple multi-threading, you only need to add a sentence to the called (callback function). If you need to support the objects in VB6, INPUTBOX, app.Title, then add a sentence to initialize the VB6 runtime library.

Complex multithreading can be managed by thread pool. (Using a multi-line file list or database)
For example, a maximum of 30 multi-threads are allowed to process 30 tasks at the same time.
If there are 20,000 tasks to be processed now, each task will take a long time. Thread 8 completes a task first, and takes the 31st task.
The 22nd thread completes a task second and uses the 32nd task.
If the program is accidentally closed, you need to continue processing after reopening the software, and automatically open tasks 1-32 (except for tasks 8 and 22)

Viewing all articles
Browse latest Browse all 15223

Trending Articles