June 2017
Intermediate to advanced
400 pages
8h 44m
English
We already saw the computation Scheduler, which you can get the global instance of by calling Schedulers.computation(). This will maintain a fixed number of threads based on the processor count available to your Java session, making it appropriate for computational tasks. Computational tasks (such as math, algorithms, and complex logic) may utilize cores to their fullest extent. Therefore, there is no benefit in having more worker threads than available cores to perform such work, and the computational Scheduler will ensure that:
Observable.just("Alpha", "Beta", "Gamma", "Delta", "Epsilon") .subscribeOn(Schedulers.computation());
When you are unsure how many tasks will be executed concurrently or are simply unsure which Scheduler ...
Read now
Unlock full access