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

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.

主站蜘蛛池模板: 张掖市| 丽水市| 长子县| 镇江市| 吉安县| 富宁县| 浠水县| 萨嘎县| 凤翔县| 龙泉市| 龙山县| 临清市| 白山市| 五家渠市| 惠水县| 北票市| 巴彦县| 黑河市| 齐齐哈尔市| 平陆县| 岑溪市| 涞水县| 海南省| 阳朔县| 达尔| 台湾省| 纳雍县| 凤山县| 乡城县| 惠来县| 七台河市| 南澳县| 三穗县| 当雄县| 淳安县| 黎城县| 大冶市| 依安县| 纳雍县| 宜阳县| 永春县|