Re: multithreading

"John Selverian" <[email protected]>
Newsgroups gmane.comp.lib.fox-toolkit.user
Organization JAHM Software
Message-ID <[email protected]>
It takes a very short time to fill the FXArray, pass the data and start the threads. When I step through the code with the debugger these steps combined take about 2 second per thread.

 

I guess I’ll stick with 1 thread.

 

 

 

From: JVZ <[email protected]> 
Sent: Sunday, November 20, 2022 2:07 PM
To: [email protected]; Enno Rehling <[email protected]>
Subject: Re: [Foxgui-users] multithreading

 


...amdahls law. Indeed. There is always a lot of serial stuff in any code.
Whats worse is that the serial part has its 'working set' mostly cache-resident.

Farming a chunk of work out to other threads first has to make up for the transfer of cached data to the other threads. This needs to happen before the other threads start to actually help, rather than impair, performance.

Again the longer the cpujob is the less this transient behaviour hurts. 

Its why i would suggest vectorization first. It almost always helps..




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.