New answers tagged

1

The advantage of threading is that you can get a pipeline of processing stages going. On a multi-core processor, this can allow you to have several steps running at the same time, each processing the output of the pervious step. But if some steps take longer than others, then you can't really get around that. The faster ones will just have to wait until ...


1

Any API that goes to a server is unreliable. For any such API, you would expect that either you get an error very shortly after a call (usually due to a programming error), a correct reply quite shortly after the call but occasionally with a bit delay, a reply with a status indicating a problem at similar speed, or n indication that no useful reply will be ...


0

There is no right answer to this question; it depends on your requirements. If using a single task achieves the required functionality, then that is one solution. Conversely, if using multiple tasks also achieves the required functionality, and the benefits (e.g. maybe it runs faster) outweigh any costs (e.g. it requires more code space and RAM), then that ...


Top 50 recent answers are included