|
|
|
|
|
by amelius
1490 days ago
|
|
> If they are just batch background tasks (i.e. there is no expectation of seeing some immediate UI update as a response), then having a larger queue might be fine. "Larger" is not good enough; you really want an unbounded queue (unbounded in theory of course), because otherwise the GUI thread might block at some point. Unless you want to spend a lot of effort on exception handling (at which point unbounded is still the best choice, see below). Also, unnecessary restrictions in your program might cause problems in the future when your software is ported to a larger architecture, or when demands change. |
|