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

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.

主站蜘蛛池模板: 白沙| 龙海市| 兰州市| 阿图什市| 英山县| 蓝田县| 廊坊市| 文水县| 翁源县| 禹城市| 黎川县| 德安县| 鲁山县| 桃园市| 离岛区| 武鸣县| 南漳县| 启东市| 海晏县| 炎陵县| 合作市| 施秉县| 磐安县| 凌海市| 云浮市| 山丹县| 洪泽县| 扶沟县| 武冈市| 石柱| 镇沅| 隆尧县| 通化县| 本溪市| 墨竹工卡县| 阳曲县| 广水市| 古丈县| 陵水| 安塞县| 祁东县|