Object-Orientation, Abstraction, and Data Structures Using Scala, Second Edition (Chapman & HallCRC Textbooks in Computing) by Mark C. Lewis & Lisa L. Lacher

Object-Orientation, Abstraction, and Data Structures Using Scala, Second Edition (Chapman & HallCRC Textbooks in Computing) by Mark C. Lewis & Lisa L. Lacher

Author:Mark C. Lewis & Lisa L. Lacher [Lewis, Mark C.]
Language: eng
Format: azw3, mobi
Publisher: CRC Press
Published: 2017-01-06T05:00:00+00:00


Scala provides many options for adding multithreading to your code. It can be challenging to determine which one to use in different contexts. Here are some simple rules of thumb. – If the problem automatically brings to mind a for loop or higher-order methods like map and filter and the things happening in one iteration do not depend on another, a parallel collection is probably best.

– If you are designing a large system with many parts that are all able to happen in parallel, then you should strongly consider using an actor-based system for the full application.

– If it does not match one of those two, use a Future.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.