Vote UpVote

Application shutdown: wait for all threads to terminate or not?

The Wiert Corner – A while ago, I ran into a problem that an anonymous thread would run longer than the main thread of the application. This caused all sorts of trouble, so in this case I decided to fix it for that particular thread. There are various opinions if this should be done for all threads or not. Like always, it depends, so it is good to mention a few: This particular case resulted into the memory manager shutting down earlier than the anonymous thread, but the anonymous thread was still using memory allocation functions, resulting into a few things of which you do not want the first and second to ...
Favorite? Off-Topic? jpluimers @ 2019-02-21 18:05


Visits: 218
Votes: 0
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)