diff options
author | Peter Wu <peter@lekensteyn.nl> | 2014-06-11 15:05:55 +0200 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2014-06-11 15:05:55 +0200 |
commit | 0b45bda64516af36577e6c72e2a0175a2f51701d (patch) | |
tree | f33238ca6c627e650344740f761419ad3c70b7d7 /src/main/Analyzor.java | |
parent | c7a805b5b4db27d88bf7decdfc198a17881981a8 (diff) | |
download | Goldfarmer-0b45bda64516af36577e6c72e2a0175a2f51701d.tar.gz |
getBrands: Fix hang when done
For producer thread 0 and consumer threads 1 and 2
0:queue size = 0
1:get(); hangs...
2:get(); hangs...
0:put suicide pill
1:get resumes, exits
Observe that 2:get is still running (deadlocks). To "fix" this, add
multiple suicide pills. The current value (16) allows up to 16
concurrent workers.
Diffstat (limited to 'src/main/Analyzor.java')
0 files changed, 0 insertions, 0 deletions