Parallel Computing (2): differences between parallel computing and distributed processing

Source: Internet
Author: User
1. concept understanding physical processor: A single-core CPU, a single core of multi-core CPU, is a physical processor; logical processor: A physical processor can be simulated into multiple logical processors through hyper-Threading Technology, the purpose of hyper-Threading Technology is to improve the utilization efficiency of physical processors. The overhead is that multiple simulated logical processors have many

1. concept understanding physical processor: A single-core CPU, a single core of multi-core CPU, is a physical processor; logical processor: A physical processor can be simulated into multiple logical processors through hyper-Threading Technology, the purpose of hyper-Threading Technology is to improve the utilization efficiency of physical processors. The overhead is that multiple simulated logical processors have many

1. Concepts

Physical processor:

One single-core CPU and one core of multi-core CPU are all a physical processor;

Logic processor:

Using hyper-Threading Technology, you can simulate a physical processor into multiple logical processors,
The purpose of hyper-Threading Technology is to improve the utilization efficiency of physical processors. The overhead is that multiple simulated logical processors have a lot of data storage and recovery work during work switching, therefore, the actual processing performance is weaker than multiple physical processors with multi-core CPUs. Two physical processors with dual-core CPUs can also be simulated into four logical processors through hyper-Threading Technology, however, with the increase in the number of physical processors for multi-core CPUs, there is no need to use hyperthreading technology with high overhead. To avoid conceptual confusion, unless otherwise specified in subsequent descriptions, the processor is a physical processor and will not discuss hyper-Threading Technology.

Concurrent computing:

A single processor is used for time division. On a single processor, the time-division and multi-task operating systems adopt the scheduling method of concurrent computing;

Parallel Computing:

Space reuse of multiple processors;
The Intel multimedia instruction optimization set is a special parallel computing optimization designed for a single processor that extends the processing of additional data;

In a multi-processor system, the operating system uses the parallel computing scheduling method, allowing multiple threads to be executed simultaneously on multiple processors.

Serial computing:

A single processor executes commands in sequence. A single thread is essentially a serial computing.


Processing Unit:

An independent software/hardware system can be a PC or a virtual machine system;

Distributed Processing System:

A processing task is divided into multiple processors. The system is a flat structure. Generally, the upper layer has a control center and the lower layer has multiple processing units, improve the processing performance of the entire system through the number/Function Extension of multiple processing units in the lower layer;
There are two decomposition methods for processing tasks: one is the decomposition of similar processing tasks, which is a quantitative expansion; the other is the decomposition based on different functions, which is a function extension; the two decomposition methods are generally used together.

Centralized processing system:

A processing task is concentrated on a single processing unit. The system has a star structure and generally only one core processing unit. Even if the core processing unit has a dual-Machine backup, it is also a centralized processing system.


2. Technical Scope

Task: Task priority
Process/thread: minimum unit for Operating System Scheduling


Software Development Technology:
(1) system level-> centralized processing system-the object is a processing unit

-> Include a processor-> concurrent computing and Scheduling Optimization
-> Command Optimization for Parallel Computing (Special Case)
-> Multiple processors-> parallel computing

-> Distributed processing system-objects are multiple Processing Units

-> The number of tasks is decomposed to expand the quantity space;
-> Task function breakdown and function space expansion;

(2) algorithm layer-> one processor

-> Concurrent computing

-> Time-based scheduling-> A new high-priority task

-> Preemption
-> Cannot be preemptible, such as the core State of a Linux Process
-> New low-priority tasks

-> Reserved time slices ensure scheduling and predictable latency

-> Multi-task scheduling-> A new high-priority task

-> Preemption
-> Cannot be preemptible
-> New low-priority tasks

-> Delayed scheduling and unpredictable
-> Multiple Processors

-> Parallel computing

-> Parallel Algorithms

-> Algorithm topics for reusing multiple processors in space, omitted

-> Parallel Scheduling

-> New high-priority tasks-> priority allocation to idle Processors
-> New low-priority tasks-> Load Balancing distributed to various Processors

3. Technical outlook of multi-core CPU
Multi-core CPU-> one Processing Unit

-> Include multiple processors-> parallel computing-> parallel algorithms->...
-> Parallel Scheduling->...
-> Virtual machine technology-> Distributed Processing System

-> Multiple Processing Units

-> The number of tasks is decomposed to expand the quantity space;
-> Function breakdown of tasks and function space expansion.

In the future, different kernels of multi-core CPUs will be more easily organized into a powerful distributed processing system if different functions are provided, avoiding the difficulty of Parallel Computing in software development.


Source: http://blog.sina.com.cn/s/blog_4a2d4e8f010081rh.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.