Hello,
How do I know how many Threads I can run at the same time to load images? is there a calculation according to the processor (number of cores)? Are there any limits?
thanks
How Many Threads at the same time ?
Re: How Many Threads at the same time ?
Thanks i will read it !
Re: How Many Threads at the same time ?
The limit is reached, when CreateThread() returns #False:
On my system no limit is reached, but thread creation becomes slower (count around 40000).
Code: Select all
Procedure Test(Void.i)
Repeat
Delay(1000)
ForEver
EndProcedure
Define Count = 0
While CreateThread(@Test(), Count)
Count + 1
If Count % 100 = 0
Debug Count
EndIf
Wend
Debug Str(Count) + " threads!"
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and more ― Typeface - Sprite-based font include/module
Lizard - Script language for symbolic calculations and more ― Typeface - Sprite-based font include/module
Re: How Many Threads at the same time ?
Sounds like virtual memory mapping kicking in?STARGÅTE wrote: Sat Aug 07, 2021 8:17 pmOn my system no limit is reached, but thread creation becomes slower (count around 40000).
Re: How Many Threads at the same time ?
ok thanks ! 

Re: How Many Threads at the same time ?
Windows 10 / Windows 7
PB Last Final / Last Beta Testing
PB Last Final / Last Beta Testing