- Parallel Programming with Python
- Jan Palach
- 381字
- 2021-07-16 11:22:19
Exploring common forms of parallelization
There is a certain confusion when we try to define the main forms of paralleling systems. It is common to find quotations on parallel and concurrent systems as if both meant the same thing. Nevertheless, there are slight differences between them.
Within concurrent programming, we have a scenario in which a program dispatches several workers and these workers dispute to use the CPU to run a task. The stage at which the dispute takes place is controlled by the CPU scheduler, whose function is to define which worker is apt for using the resource at a specific moment. In most cases, the CPU scheduler runs the task of raking processes so fast that we might get the impression of pseudo-parallelism. Therefore, concurrent programming is an abstraction from parallel programming.
The following diagram shows a concurrent program scheme:

Concurrent programming scheme.
Parallel programming can be defined as an approach in which program data creates workers to run specific tasks simultaneously in a multicore environment without the need for concurrency amongst them to access a CPU.
The following figure shows the concept of parallel systems:

Parallel programming scheme.
Distributed programming aims at the possibility of sharing the processing by exchanging data through messages between machines (nodes) of computing, which are physically separated.
Distributed programming is becoming more and more popular for many reasons; they are explored as follows:
- Fault-tolerance: As the system is decentralized, we can distribute the processing to different machines in a network, and thus perform individual maintenance of specific machines without affecting the functioning of the system as a whole.
- Horizontal scalability: We can increase the capacity of processing in distributed systems in general. We can link new equipment with no need to abort applications being executed. We can say that it is cheaper and simpler compared to vertical scalability.
- Cloud computing: With the reduction in hardware costs, we need the growth of this type of business where we can obtaining huge machine parks acting in a cooperative way and running programs in a transparent way for their users.
The following figure shows a distributed system scheme:

Distributed programming scheme.
- 密碼學(xué)原理與Java實現(xiàn)
- Manga Studio Ex 5 Cookbook
- Mastering QGIS
- 64位匯編語言的編程藝術(shù)
- Java EE 7 Development with NetBeans 8
- 深入淺出Serverless:技術(shù)原理與應(yīng)用實踐
- C++面向?qū)ο蟪绦蛟O(shè)計習(xí)題解答與上機(jī)指導(dǎo)(第三版)
- SQL Server從入門到精通(第3版)
- AIRIOT物聯(lián)網(wǎng)平臺開發(fā)框架應(yīng)用與實戰(zhàn)
- Bootstrap 4 Cookbook
- C++ Fundamentals
- Python Programming for Arduino
- Android嵌入式系統(tǒng)程序開發(fā)(基于Cortex-A8)
- Instant Pygame for Python Game Development How-to
- CryENGINE Game Programming with C++,C#,and Lua