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

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.

主站蜘蛛池模板: 石家庄市| 潞西市| 乌兰浩特市| 习水县| 隆林| 昌吉市| 瑞金市| 德庆县| 芒康县| 靖安县| 九台市| 类乌齐县| 蕉岭县| 泽普县| 武平县| 台州市| 连城县| 贵南县| 利津县| 永靖县| 耒阳市| 郓城县| 河源市| 冷水江市| 南雄市| 正安县| 德庆县| 长子县| 湖口县| 台安县| 始兴县| 定州市| 宣汉县| 德安县| 仁寿县| 陵川县| 峨山| 潜江市| 宜州市| 峨边| 寿光市|