处理器和内核之间有什么区别吗?

Sal*_*dor 3 cpu

以下两个命令似乎给了我关于相同硬件的不同信息

srs@ubuntu:~$ cat /proc/cpuinfo | grep -e processor -e cores
processor   : 0
cpu cores   : 4
processor   : 1
cpu cores   : 4
processor   : 2
cpu cores   : 4
processor   : 3
cpu cores   : 4
Run Code Online (Sandbox Code Playgroud)
srs@ubuntu:~$ sudo dmidecode -t processor 
# dmidecode 2.9
SMBIOS 2.6 present.

Handle 0x0004, DMI type 4, 42 bytes
Processor Information
    Socket Designation: LGA1155
    Type: Central Processor
    Family: <OUT OF SPEC>
    Manufacturer: Intel            
    ID: A7 06 02 00 FF FB EB BF
    Version: Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz       
    Voltage: 1.0 V
    External Clock: 100 MHz
    Max Speed: 3800 MHz
    Current Speed: 3300 MHz
    Status: Populated, Enabled
    Upgrade: Other
    L1 Cache Handle: 0x0005
    L2 Cache Handle: 0x0006
    L3 Cache Handle: 0x0007
    Serial Number: To Be Filled By O.E.M.
    Asset Tag: To Be Filled By O.E.M.
    Part Number: To Be Filled By O.E.M.
    Core Count: 4
    Core Enabled: 1
    Characteristics:
        64-bit capable
Run Code Online (Sandbox Code Playgroud)

直到今天,我还以为我有一个带有 4 个独立内核的处理器。我还认为在每个核心内可以使用不同的线程。


Mitch 已经让我知道我有单插槽四核(示例 3):

srs@ubuntu:~$ cat /proc/cpuinfo | grep -e processor -e "model name" -e "cache size" -e "physical id" -e "siblings" -e "core id" -e "cpu cores"
processor   : 0
model name  : Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz
cache size  : 6144 KB
physical id : 0
siblings    : 4
core id     : 0
cpu cores   : 4
processor   : 1
model name  : Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz
cache size  : 6144 KB
physical id : 0
siblings    : 4
core id     : 1
cpu cores   : 4
processor   : 2
model name  : Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz
cache size  : 6144 KB
physical id : 0
siblings    : 4
core id     : 2
cpu cores   : 4
processor   : 3
model name  : Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz
cache size  : 6144 KB
physical id : 0
siblings    : 4
core id     : 3
cpu cores   : 4
Run Code Online (Sandbox Code Playgroud)

现在我可以理解还有更多我从未想过的不同类型的处理器。谢谢

Mit*_*tch 6

多核处理器是具有 1 个以上内核以相同速度运行的单个处理器。

双 CPU = 意味着 2 个物理 CPU

Dual Core = 表示单个 CPU 具有两个内核,可以同时处理两个线程

例如,以 3GHz 速度运行的四核处理器将有 4 个内核以该速度运行。这意味着在给定时间 CPU 可以在 4 个独立的内核中处理数据 4 次。

较新的应用程序和游戏的编码方式受益于多核处理器。

有关更多信息,您可以查看了解 Linux /proc/cpuinfo