0
votes
Vote UpVote

Delphi and stuff: The strange limitation of 64 threads

The Wiert Corner – … there’s no need to use WaitForMultipleObjects in Step 2. It’s fairly easy to keep a counter of active threads in the pool (interlocked-incremented when a thread starts, interlocked-decremented when a thread is finished). When the counter reaches zero (no more active threads), signal an event. With only one event to wait for, you can use WaitForSingleObject… So no more 64-thread (MAXIMUM_WAIT_OBJECTS) limits for pools… Source: Delphi and stuff: The strange limitation of 64 threads –jeroenFiled under: .NET, Delphi, Development, Power User, Software ...
Favorite? Off-Topic? jpluimers @ 2017-02-21 06:04

Statistics

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

Visits by Source

User Actions

Users who voted for this posting

Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

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