官术网_书友最值得收藏!

Why concurrency is often feared

Writing correct concurrent code is traditionally considered difficult. This is not only because of it being difficult, but also because many programming languages make it more difficult than it should be. Some languages make it too cumbersome, while others make it inflexible, reducing its usability. With that in mind, the Kotlin team tried to make concurrency as simple as possible while still making it flexible enough so that it can be adjusted to many different use cases. Later in the book, we will cover many of those use cases and will use many of the primitives that the Kotlin team has created, but for now let's take a look at common challenges presented when programming concurrent code.

As you can probably guess by now, most of the time it comes down to being able to synchronize and communicate our concurrent code so that changes in the flow of execution don't affect the operation of our application.

主站蜘蛛池模板: 都江堰市| 叶城县| 达拉特旗| 和顺县| 韶关市| 永顺县| 宁津县| 宁河县| 丘北县| 辽阳市| 同仁县| 巩义市| 南召县| 太和县| 观塘区| 彩票| 昆明市| 寿宁县| 元江| 南投市| 永善县| 开平市| 普陀区| 油尖旺区| 商水县| 同德县| 澄城县| 威海市| 元谋县| 龙游县| 龙江县| 泰和县| 逊克县| 无锡市| 大洼县| 宜川县| 大埔区| 淅川县| 奈曼旗| 柞水县| 邛崃市|