工程师 - 什么是SMP

什么是 SMP(对称多处理)?

What is SMP (symmetric multiprocessing)?

对称多处理(SMP,symmetric multiprocessing)是由多个处理器完成的计算机处理过程,这些处理器共享一个操作系统(OS)和内存。在对称多处理中,处理器共享相同的输入/输出(I/O)总线或数据路径。操作系统的单一副本负责管理所有处理器。

SMP (symmetric multiprocessing) is computer processing done by multiple processors that share a common operating system (OS) and memory. In symmetric multiprocessing, the processors share the same input/output (I/O) bus or data path. A single copy of the OS is in charge of all the processors.

与大规模并行处理(MPP)系统相比,SMP 系统更适合在线事务处理,因为在大规模并行处理系统中,许多用户通过一组相对简单的事务访问同一个数据库。与 MPP 系统不同,SMP 系统可以动态地平衡计算机之间的工作量,从而更快地为更多用户提供服务。

SMP systems are better suited for online transaction processing than massively parallel processing (MPP) systems in which many users access the same database in a relatively simple set of transactions. Unlike MPP systems, SMP systems can dynamically balance the workload among computers to serve more users faster.

SMP 计算机体系结构是一种多处理器硬件和软件体系结构,拥有多个相同的处理器。这些处理器平等共享主内存,并可访问所有 I/O 设备。如今,大多数现代操作系统都支持 SMP 机器。在过去,用户必须学习特殊的编程技巧才能使用 SMP。

The SMP computer architecture is a multiprocessor hardware and software architecture that has multiple identical processors. The processors equally share main memory and have access to all I/O devices. Today, most modern OSes support SMP machines. In the past, users had to learn special programming skills to use SMP.

How is SMP used?

对称多处理系统主要用于资源密集型计算环境。这些环境需要大量的计算能力来执行应用任务和进程。大多数多处理器系统使用 SMP 架构。

Symmetric multiprocessing systems are used primarily in resource-intensive computing environments. These are environments that need a large amount of computing power to execute application tasks and processes. Most multiprocessor systems use SMP architectures.

SMP 最适用于分时系统和多线程分时系统。时间共享是指将计算资源同时分配给多个用户。同样,多线程是中央处理器(CPU)的一项功能,可在一个进程中执行多个并发任务。更具体地说,多线程可使多个指令线程独立执行,共享相同的处理资源。

SMP is most useful for time-sharing systems and multithreading time-sharing systems. Time sharing is the distribution of a computing resource to multiple users at one time. Similarly, multithreading is a central processing unit (CPU) feature that enables multiple, concurrent tasks to be performed in one process. More specifically, multithreading enables multiple instruction threads to execute independently, all sharing the same processing resources.

时间共享使用 SMP,因为它将计算资源分配给多个用户,并可并行运行多个进程。SMP 的设计目的是让多个进程在不同的处理单元上运行,它为这一处理提供了帮助。在多线程中使用 SMP 也是出于同样的原因,因为多线程可以同时处理多个操作,而 SMP 则将线程分配给每个处理器。

Time sharing uses SMP, as it distributes computing resources to multiple users and can run multiple processes in parallel. This process is aided by SMP, which is designed to have more than one process running on different processing units. SMP is used in multithreading for the same reason, as multithreading handles multiple processes at one time and SMP divides the threads up to each processor.

然而,SMP 并不常用于个人电脑或应用程序,因为这些电脑或应用程序未经修改,无法考虑多线程编程。应用程序和程序的设计必须支持多线程,这样才能在不同的并行处理器上安排线程。

SMP, however, is not commonly used in PCs or applications that have not been modified to take multithreaded programming into account. Applications and programs need to be designed to enable multithreading so that threads can be scheduled on different parallel processors.

Memory space, I/O bus and data path are shared among multiple processors in SMP.

What are the advantages and disadvantages of SMP?

对称多处理的优势如下:

* 提高吞吐量。使用多个处理器运行任务可缩短任务执行时间。

* 可靠性。如果一个处理器出现故障,整个系统不会失效。但效率仍可能受到影响。

* 成本效益高。由于 SMP 系统中的处理器共享数据存储、电源和其他资源,因此从长远来看,SMP 是一种比单处理器系统更经济的提高系统吞吐量的方法。

* 性能。由于吞吐量增加,SMP 计算机系统的性能明显高于只有一个处理器的系统。

* 编程和执行代码。程序可在 SMP 系统的任何处理器上运行,并达到大致相同的性能水平,这使得编程和执行代码变得相对简单。

* 多个处理器。如果某项任务需要很长时间才能完成,可以增加多个处理器来加快进程。

Advantages of symmetric multiprocessing include the following:

* Increased throughput. Using multiple processors to run tasks decreases the time it takes for the tasks to execute.

* Reliability. If a processor fails, the whole system does not fail. But efficiency may still be affected.

* Cost-effective. SMP is a less expensive way long term to increase system throughput than a single processor system, as the processors in an SMP system share data storage, power supplies and other resources.

* Performance. Because of the increased throughput, the performance of an SMP computer system is significantly higher than a system with only one processor.

* Programming and executing code. A program can run on any processor in the SMP system and reach about the same level of performance, which makes programming and executing code relatively straightforward.

* Multiple processors. If a task is taking too long to complete, multiple processors can be added to speed up the process.

不过,SMP 也有以下缺点:

* 内存花费。由于 SMP 中的所有处理器都共用内存,因此主内存必须足够大,以支持所有处理器。

* 兼容性。要使 SMP 正常工作,操作系统、程序和应用程序都必须支持该架构。

* 复杂的操作系统。操作系统管理 SMP 系统中的所有处理器。这意味着操作系统的设计和管理可能非常复杂,因为操作系统需要处理所有可用的处理器,同时还要在资源密集型计算环境中运行。

However, SMP also comes with the following disadvantages:

* Memory expense. Because all processors in SMP share common memory, main memory must be large enough to support all the included processors.

* Compatibility. For SMP to work, the OS, programs and applications all need to support the architecture.

* Complicated OS. The OS manages all the processors in an SMP system. This means the design and management of the OS can be complex, as the OS needs to handle all the available processors, while operating in resource-intensive computing environments.

参考:

What is Symmetric Multiprocessing (SMP)?

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/865872.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

新加坡博士申请|中国社科院-新加坡社科大学联合培养工商管理博士

新加坡博士申请|中国社科院-新加坡社科大学联合培养工商管理博士 【项目名称】中国社会科学院大学与新加坡新跃社科大学工商管理博士项目 【学制】最短3年,最长不超过7年 【学位证书】新加坡新跃社科大学工商管理博士学位 【招生对象】企业高管、咨询顾问及其他有…

我在高职教STM32——时钟系统与延时控制(2)

大家好,我是老耿,高职青椒一枚,一直从事单片机、嵌入式、物联网等课程的教学。对于高职的学生层次,同行应该都懂的,老师在课堂上教学几乎是没什么成就感的。正因如此,才有了借助 CSDN 平台寻求认同感和成就…

WPS中制作甘特图的详细教程

网上没几个详细说怎么在WPS中制作甘特图的,我自己整理了一下详细教程,最终效果如下图所示: 1.写好需要展示的项目相关信息,如下图所示: #####这个进度的百分比渐变效果这样设置就行了 2.现在我们需要计算已用时间和剩…

docker安装ElasticSearchKibana

本文参考以下两篇文章 ✅ElasticSearch&Kibana 部署 云效 Thoughts 企业级知识库 (aliyun.com) docker安装ElasticSearch&Kibana - 飞书 安装elasticsearch 使用docker下载es: docker pull elasticsearch:8.13.0 挂载配置 创建挂在文件目录 mkdir…

AI大模型:解锁未来职业竞争力的金钥匙

AI元年:大模型的革新力量 随着ChatGPT的震撼登场,2023年被标记为AI元年,大模型以其前所未有的影响力,重塑我们的日常生活和工作方式。从日常的问答对话到复杂的编程辅助,乃至创意图像生成,AI大模型展现出超…

嵌入式Linux系统编程 — 6.4 信号集

目录​​​​​​​ 1 信号集概念 2 sigemptyset、sigfillset初始化信号集 3 sigaddset、sigdelset向信号集中添加/删除信号 4 sigismember函数测试信号是否在信号集中 1 信号集概念 在Linux系统中,信号集(signal set)用于表示一组信号…

对标GPT-4o!不锁区、支持手机、免费使用,Moshi来啦!

7月4日凌晨,法国知名开源AI研究实验室Kyutai在官网发布了,具备看、听、说多模态大模型——Moshi。 Moshi功能与OpenAI在5月14日展示的最新模型GPT-4o差不多,可以听取人的语音提问后进行实时推理回答内容。但GPT-4o的语音模式要在秋天才能全面…

确认下单:购物车页面点击 去结算 按钮发起两个请求trade(显示购物车的商品信息和计算商品的总金额)findUserAddressList

文章目录 1、确认下单:购物车页面点击去结算1.1、在OrderController类中创建 trade 方法1.2、在CartController类中创建 checkedCartInfos1.3、CartServiceImpl 实现 checkedCartInfos的业务功能1.4、在service-cart-client模块下定义远程openFeign接口1.5、在SpzxO…

再次登榜,深兰科技荣膺全球独角兽企业500强

6月27~28日,《2024全球独角兽企业500强》榜单发布,深兰科技凭借在AI产业赋能和产品出海方面的出色表现,继2023年之后再次登榜。 《2024全球独角兽企业500强》评委会介绍,本届榜单的产生,是由“全球独角兽企…

flutter开发实战-Charles抓包设置,dio网络代理

flutter开发实战-Charles抓包设置 在开发过程中抓包,可以看到请求参数等数据,方便分析问题。flutter上使用Charles抓包设置。dio需要设置网络代理。 一、dio设置网络代理 在调试模式下需要抓包调试,所以需要使用代理,并且仅用H…

专利优先权是什么

专利优先权:定义、分类与重要性 在专利的世界中,专利优先权是一个至关重要的概念。它不仅是专利申请人权益的保障,更是确保创新成果得到及时和充分保护的重要工具。 一、专利优先权的定义 专利优先权是指专利申请人就其发明创造第一次在某…

CTF常用sql注入(一)联合注入和宽字节

0x01 前言 给自己总结一下sql注入的常用姿势吧,记录一下学习 0x02 联合 联合注入的关键词是union SQL的union联合注入原理是联合两个表进行注入攻击,使用union select关键词来进行联合查询。 那么为什么我们在题目中一般是只写一个呢 因为 $sql &quo…

java-数据结构与算法-02-数据结构-02-链表

文章目录 1. 概述2. 单向链表3. 单向链表(带哨兵)4. 双向链表(带哨兵)5. 环形链表(带哨兵)6. 习题E01. 反转单向链表-Leetcode 206E02. 根据值删除节点-Leetcode 203E03. 两数相加-Leetcode 2E04. 删除倒数…

基于C++实现的EventLoop与事件驱动编程

一,概念介绍 事件驱动编程(Event-Driven)是一种编码范式,常被应用在图形用户界面,应用程序,服务器开发等场景。 采用事件驱动编程的代码中,通常要有事件循环,侦听事件,…

封装stater时配置导入配置类提示功能

提示功能如下 使用注解导入配置属性时添加依赖 <dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-configuration-processor</artifactId><optional>true</optional></dependency>

孕产妇健康管理信息平台,多家医院产科广泛运用,系统稳定,功能齐全 产科管理系统源码,三甲医院产科电子病历系统成品源代码

孕产妇健康管理信息平台&#xff0c;多家医院产科广泛运用&#xff0c;系统稳定&#xff0c;功能齐全 产科管理系统源码&#xff0c;三甲医院产科电子病历系统成品源代码 女性生育过程会面临许多的困难和问题&#xff0c;需要经常性地前往医院做详细的身心检查&#xff0c;在…

IDEA 一键部署Docker

以部署示例服务&#xff08;sevnce-demo&#xff09;为例。 配置服务器 地址、账号、密码根据实际情况填写 配置镜像仓库 地址、账号、密码根据实际情况填写 编写Dockerfile 在sevnce-demo根目录下右键&#xff0c;选择创建Dockerfile。 # 基础镜像 FROM sevnce-registry.c…

C++:求梯形面积

梯形面积 已知上底15厘米&#xff0c;下底25厘米&#xff0c;问梯形面积值是多少&#xff1f; #include<iostream> using namespace std; int main() {//梯形的面积公式&#xff08;上底下底&#xff09; 高 2//上底变量、下底变量int s,d,h,m;s15;d25;h 2*150 * 2/s ;…

Day04-jenkins-docker

Day04-jenkins-docker 9. 案例06: 基于docker的案例实现静态代码9.1 整体流程9.2 步骤与环境1) 步骤2) 环境 9.3 详细步骤1&#xff09;代码准备2&#xff09;书写dockerfile3&#xff09;准备私有仓库4&#xff09;创建jenkins任务5&#xff09;web节点上启动对应的docker容器…

信息打点web篇---前端js打点

前言 欢迎来到我的博客 个人主页:北岭敲键盘的荒漠猫-CSDN博客 本文主要整理前端js代码的打点思路 本文只为学习安全使用&#xff0c;切勿用于非法用途。 一切未授权的渗透行为都是违法的。 前端js打点概念与目的 javascript文件属于前端语言&#xff0c;也就是说他的代码都…