395
edits
Philosopher (talk | contribs) (Create) |
Philosopher (talk | contribs) |
||
| Line 34: | Line 34: | ||
: Okay, for some reason (I just checked) I only saw ~6 threads in a test run (according to the Mac activity monitor), but the code currently committed is too much of a late-night hack :P —[[User:Philosopher|Philosopher]] | : Okay, for some reason (I just checked) I only saw ~6 threads in a test run (according to the Mac activity monitor), but the code currently committed is too much of a late-night hack :P —[[User:Philosopher|Philosopher]] | ||
:: I think I have a solution now, will try and test it. Create them the same way, but limit the number of threads, and a thread only exits if there are no more jobs to be done, else it acquires a lock, picks up a new job / replaces the global queue with a new one, drops the lock, and starts work. Will see how it goes [[User:Philosopher|—Philosopher]] ([[User talk:Philosopher|talk]]) 18:21, 14 August 2013 (UTC) | |||
<hr/> | <hr/> | ||
edits