奔腾4上可以同时运行多少个线程 [英] how many thread can run at same time on pentium 4

查看:186
本文介绍了奔腾4上可以同时运行多少个线程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在奔腾4上可以同时运行多少线程

解决方案

这不是一个简单答案的问题。

有几个问题:Pentium4不是A处理器,它是整个系列的处理器,其中一些处于超线程(多个物理内核的虚拟实现),允许多个线程运行同时。



和同时并不是真正有用的描述,因为大多数操作系统都会先发制人地执行多任务线程以提高吞吐量,这可以让同时运行几个任务的外观。



所以,你付钱,然后你做出选择:1是好的下注(但错误,大多数情况下),2是一个更好的赌注(但实际上可能是错误的,因为超线程是虚拟的)而n是它看起来像什么,但在现实中肯定是错误的!但就可观察到的效果而言恰逢其时。





每个核心一个可能是你能得到的最佳答案。 (还是错的!:笑:)。


你可能意味着进程......(线程化进程的细分)......

实际上并不相同-time存在于单个处理器核心上,对于操作系统中可以处于活动状态的进程数量没有逻辑限制(可能是为进程保存表的内存的物理限制)。

线程是进程的细分,并在进程的线程池下进行管理。默认情况下,这样的线程池可以容纳大约500个线程但是可以使用正确的API更改该数量。

这些线程池也仅受内存物理限制的限制......

所以进程/线程号不依赖于CPU模型,而是依赖于OS(在Linux中以不同的方式处理)...

但是实际执行这些进程/线程取决于CPU的物理内核数量 - 在Pentium 4中它可以是1或2(使用超线程技术)...



关于进程和线程 [ ^ ]

英特尔奔腾4 [ ^ ]


一两个(在以后的版本中,感谢HTT,根据维基百科 [ ^ ])。


how many thread can run at same time on pentium 4

解决方案

That's not really a question that has a simple answer.
There are several problems: Pentium4 wasn't "A processor", it was a whole family of processors, some of which where hyperthreaded (virtual implementations of multiple physical cores) enabling multiple threads to run "at the same time".

And "at the same time" isn't really a useful description anyway, since most OS will pre-emptively multitask threads to increase throughput, and this can give the appearance of several tasks runnign "at the same time".

So, you pays your money, and you takes your choice: 1 is a good bet (but wrong, mostly), 2 is a better bet (but probably wrong in reality since hyperthreads are virtual) and "n" is what it all looks like, but definitely wrong in reality! But right at teh same time in terms of observable effect.


"One per core" is probably the best answer you can get here. (And still wrong! :laugh: )


You probably mean processes... (threads a subdivisions of processes)...
As in fact no same-time is exists on a single processor core there is no logical limit to the number of process can be active in an operating system (may be a physical limit of memory to hold the table for processes).
Threads are subdivisions of a process and are managed under the process's thread pool. By default such thread pool can be hold about 500 threads but that number can be changed using the right API.
These thread pools are also limited only by the physical limits of memory...
So the process/thread number does not depends on the CPU model but on the OS (in Linux it handled differently)...
However the actual implementation of the execution of those processes/threads depending on the number of physical cores of the CPU - in Pentium 4 it can be 1 or 2 (using Hyper-Threading technology)...

About Processes and Threads[^]
Intel Pentium 4[^]


One or two (in later versions, thanks to HTT, according to Wikipedia[^]).


这篇关于奔腾4上可以同时运行多少个线程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆