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

Asynchronous versus parallel versus concurrent programming

Asynchronous programming involves some calculations time-intensive tasks, which on the one hand are engaging a thread in the background but do not affect the normal flow of the program.

Parallel programming incorporates several threads to perform a task faster and so does concurrent programming. But there's a subtle difference between these two. The program flow in parallel programming is deterministic whereas in concurrent programming it's not. For example, a scenario where you send multiple requests to perform and return responses regardless of response order is said to be concurrent programming. But where you break down your task into multiple sub-tasks to achieve parallelism can be defined as the core idea of parallel programming.

主站蜘蛛池模板: 武清区| 长岭县| 蓝田县| 佛山市| 额敏县| 谷城县| 普兰县| 翼城县| 兴山县| 湘潭市| 昌乐县| 江口县| 麻栗坡县| 莎车县| 志丹县| 黄梅县| 施秉县| 陆丰市| 吉安市| 九江县| 长岛县| 湖口县| 贺兰县| 雷波县| 方城县| 宁安市| 阿克苏市| 察隅县| 闵行区| 巴楚县| 河池市| 洱源县| 惠东县| 克山县| 微博| 开远市| 肇东市| 阳江市| 临沧市| 西青区| 大同市|