What can be parallelized in a single processor system?
In a single-processor system, "processor and device", "processor and channel", and "device and device" can be parallelized. The formation of modern operating systems is the result of channels. Channels are devices that can control input and output independently of the CPU. When the processor is performing operations, the channel can perform I/O operations at the same time. Therefore, the processor and the channel are parallel; When the processor is operating, the peripherals can perform input/output operations at the same time, so the processor and the device can be parallelized; and the devices can obviously be parallelized.
The operating environment of this tutorial: Windows 7 system, Dell G3 computer.
A computer system that includes only one computing processor is called a single-processor system.
In a single-processor computer system, there are at most 1 running state and at least 0; there are at most N waiting states and at least N-1; and at most N-1 and at least 0 ready states.
The single-processor system has only one instruction pipeline and one multi-functional operating component. Each clock cycle "fetches instructions" and "analyzes" completes one instruction. In many pipeline processors, the number of pipeline stages in the instruction pipeline is k=4; it mainly decomposes the execution process of an instruction into four stages: "fetching instructions", "analyzing", "executing" and "writing results". The function to be executed by the instruction is mainly completed in the multi-functional operating component and is completed in the "execution" section. The multi-functional operating components of most pipeline processors adopt a pipeline structure. Some simple instructions can be completed in the "execution" pipeline segment in just one clock cycle, while more complex instructions often require multiple clock cycles. In addition, there are also the effects of conditional transfer, etc.; therefore, the average number of instructions executed by a general pipeline scalar processor per clock cycle is less than 1, that is, its instruction level parallelism ILP<1.
In a single-processor system, what can be parallelized are: processor and device, processor and channel, device and device; but processes cannot be parallelized,
In a single-processor system, in order to improve system efficiency, multiple processes in different states are maintained in the memory (this is called concurrent execution of processes), but they occupy the processor at the same time. But there is only one process, so the processes are not parallel;
The formation of modern operating systems is the result of channels. Channels are devices that can control input and output independently of the CPU. When the processor is performing operations, the channels can perform I/O operations at the same time, so the two are also parallel;
When the processor is performing operations, the peripherals can perform input/output at the same time Operations, therefore, also produce parallelism;
Obviously, parallelism between devices can also be achieved.
Extended knowledge: The difference between a single-processor system and a multi-processor system
Early computer systems were sequential processing machines based on a single processor . Programmers write code for serial execution and let it be executed serially on the CPU. Even the execution of each instruction is serial (fetching instructions, fetching operands, performing operations, and storing results). In order to improve the speed of computer processing, the Lenovo memory system and the pipeline system were first developed. The former proposed the idea of data-driven, and the latter solved the problem of serial execution of instructions. Both of them were the initial development of computer parallelism. example. With the advancement of hardware technology, parallel processing technology has developed rapidly. Computer systems are no longer limited to single processors and single data streams, and various parallel structures have been applied.
Currently computer systems can be divided into the following four categories.
(1) Single instruction stream single data stream (SISD). A processor executes a single stream of instructions on data in memory.
(2) Single instruction stream multiple data stream (SIMD). A single instruction flow controls the simultaneous execution of multiple processing units. Each processing unit includes a processor and related data storage. One instruction actually controls different processors to operate on different data. Vector machines and array machines are representatives of this type of computer system.
(3) Multiple instruction stream single data stream (MISD). A data stream is transmitted to a group of processors and the processing results are finally obtained through different instruction operations of this group of processors. Research on this type of computer system is still in the laboratory stage.
(4) Multiple instruction stream multiple data stream (MIMD). Multiple processors execute different instruction streams simultaneously on different data sets. MIMD systems can be divided into two categories: tightly coupled MIMD systems with shared memory and loosely coupled MIMD systems with distributed memory.
For more related knowledge, please visit the FAQ column!
The above is the detailed content of What can be parallelized in a single processor system?. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Installing MySQL on CentOS involves the following steps: Adding the appropriate MySQL yum source. Execute the yum install mysql-server command to install the MySQL server. Use the mysql_secure_installation command to make security settings, such as setting the root user password. Customize the MySQL configuration file as needed. Tune MySQL parameters and optimize databases for performance.

The main uses of Linux include: 1. Server operating system, 2. Embedded system, 3. Desktop operating system, 4. Development and testing environment. Linux excels in these areas, providing stability, security and efficient development tools.

In VS Code, you can run the program in the terminal through the following steps: Prepare the code and open the integrated terminal to ensure that the code directory is consistent with the terminal working directory. Select the run command according to the programming language (such as Python's python your_file_name.py) to check whether it runs successfully and resolve errors. Use the debugger to improve debugging efficiency.

VS Code extensions pose malicious risks, such as hiding malicious code, exploiting vulnerabilities, and masturbating as legitimate extensions. Methods to identify malicious extensions include: checking publishers, reading comments, checking code, and installing with caution. Security measures also include: security awareness, good habits, regular updates and antivirus software.

There are six ways to run code in Sublime: through hotkeys, menus, build systems, command lines, set default build systems, and custom build commands, and run individual files/projects by right-clicking on projects/files. The build system availability depends on the installation of Sublime Text.

The reasons for the installation of VS Code extensions may be: network instability, insufficient permissions, system compatibility issues, VS Code version is too old, antivirus software or firewall interference. By checking network connections, permissions, log files, updating VS Code, disabling security software, and restarting VS Code or computers, you can gradually troubleshoot and resolve issues.

When installing PyTorch on CentOS system, you need to carefully select the appropriate version and consider the following key factors: 1. System environment compatibility: Operating system: It is recommended to use CentOS7 or higher. CUDA and cuDNN:PyTorch version and CUDA version are closely related. For example, PyTorch1.9.0 requires CUDA11.1, while PyTorch2.0.1 requires CUDA11.3. The cuDNN version must also match the CUDA version. Before selecting the PyTorch version, be sure to confirm that compatible CUDA and cuDNN versions have been installed. Python version: PyTorch official branch

By installing and enabling the Simplified Chinese Language Pack or Traditional Chinese Language Pack in the VS Code extension store, the VS Code user interface can be translated into Chinese, thereby enhancing the coding experience. In addition, themes, shortcuts, and code snippets can be adjusted to further personalize the settings.