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

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.

主站蜘蛛池模板: 宁武县| 淮安市| 油尖旺区| 安泽县| 湘乡市| 海淀区| 新龙县| 宜春市| 博湖县| 滕州市| 正镶白旗| 昭平县| 昌江| 新巴尔虎右旗| 白河县| 无锡市| 桓台县| 陇南市| 大埔县| 大关县| 白银市| 沙湾县| 施甸县| 琼结县| 贵定县| 格尔木市| 英吉沙县| 金平| 康乐县| 新安县| 黄山市| 大宁县| 额尔古纳市| 台州市| 昆山市| 黄龙县| 灵山县| 纳雍县| 莱芜市| 清徐县| 凉山|