Re: multithreading

JVZ <[email protected]>
Newsgroups gmane.comp.lib.fox-toolkit.user
Message-ID <[email protected]>
One thing that might help is FXThreadPool. Effectively, you create a number of threads in advance, then poat jobs to the threadpool.

The overhead of starting and stopping threads will be incurred only once.

For small jobs the overhead may be significant enough to make this have a payoff sooner that starting threads on as needed basis.

Another benefit: if the number of jobs exceeds number of processors, you can pile in jobs to work queue and have only as many threads as you have processors.

This avoids contention for processors


-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

_______________________________________________
Foxgui-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/foxgui-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.