Einzelnen Beitrag anzeigen

Benutzerbild von DP News-Robot
DP News-Robot

Registriert seit: 4. Jun 2010
14.984 Beiträge
 
#1

Delphi and stuff: The strange limitation of 64 threads

  Alt 21. Feb 2017, 06:30
… 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), ...

More...
  Mit Zitat antworten Zitat