I have a system that at times gets to use more than a thousand concurrent threads and unfortunately needs to run in 32-bit environment .
By default , Delphi allocates 1kb for each new thread , which in a strong> becomes unfeasible for the size of the system in question. I could set a new value via menu, but would lose the option to change it at runtime, if the new size does not meet my demands or is too large for them.
My intention then is to find a form, using the Thread.Execute
command to parameterize this size. Be it via ini , BD or whatever, as long as it's in the code.
I know that with the command BeginThread()
I would reach my goal, but with it I end up losing several interesting threads, such as Thread.Synchronize
and Thread.Queue
, which, once again, , the weight of these losses becomes enormous.
An example setting via hardcode would already be enough, since I already have the form to parameterize this defined value.