双处理器

编程入门 行业动态 更新时间:2024-10-09 15:19:38
本文介绍了双处理器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

问候,全部。 我有一个程序我正试图通过将它放在一台新机器来加速。 新机器是康柏W6000带有双XEON 处理器的2.0 GHz工作站。 我的旧机器速度提高了约7倍,这是300 MHz AMD K6II,但我认为应该有更大的速度增加,因为 两个XEON。 然而,想到了Python(2.4.1)可能我没有能力利用双处理器,所以我的问题: 是吗? 如果没有,谁知道哪里有可能是人们试图制作的信息 Python在多个处理器上运行64位? 谢谢! John Brawley - peace JB jg ******* @ charter http:/ /tetrahedraverse 注意!宪章不阻止病毒, 因此,请不要附件; 他们不会从宪章邮件服务器下载。 __Prearrange__任何附件先和我在一起。

解决方案

" John Brawley" < JG ******* @ earthlink>写道:

然而,有人认为Python(2.4.1)可能没有能力利用双处理器,所以我的问题是:是吗? 编号 如果没有,谁知道人们试图在多处理器上运行64位的信息可能会有什么信息? ?谢谢!

没有人以任何严肃的方式尝试它。

John Brawley写道:

问候,全部。我有一个程序我正试图通过将它放在一台新机器来加速。新机器是一个Compaq W6000 2.0 GHz工作站带有双XEON 处理器。我的旧机器速度提高了约7倍,这是一台300 MHz AMD K6II,但我认为应该有由于两个XEON,速度提升得更快。然而,人们认为Python(2.4.1)可能没有能力利用双处理器,所以我的问:是吗? 当然可以,但是你必须编写程序来完成它。一个Python进程 只会因为GIL(全局 解释器锁)而使一个CPU(一次)饱和。如果你可以将你的问题分解成更小的件,你可以做一些事情,比如启动多个进程来处理 数据并使用共享内存(我没有在...之间传递 数据。或者一个想法我一直在修补 最近是在进程之间使用BSD DB作为队列就像 标准库中的Queue.Queue在线程之间做。或者你可以在进程之间使用Pyro 。或者CORBA。 如果没有,谁知道人们试图在多个处理器上运行64位Python的信息?谢谢! John Brawley - 和平 JB jg*******@charter tetrahedraverse 注意!宪章没有阻止病毒,因此请不要附件; 他们不会从宪章邮件服务器下载。 __Prearrange__任何附件,先跟我一起。 HTH, JMJ

Jeremy Jones< za ****** @ bellsouth>写道:

在进程之间传递数据。或者我最近一直在修补的想法是在进程之间使用BSD DB作为队列,就像标准库中的Queue.Queue在线程之间做的那样。或者你可以在进程之间使用Pyro。或CORBA。

我认为这并不算是使用多个处理器;只有多个程序可以放在不同的盒子上。 多处理意味着共享内存。 此模块可能感兴趣: poshmodule.sf

Greetings, all. I have a program I''m trying to speed up by putting it on a new machine. The new machine is a Compaq W6000 2.0 GHz workstation with dual XEON processors. I''ve gained about 7x speed over my old machine, which was a 300 MHz AMD K6II, but I think there ought to be an even greater speed gain due to the two XEONs. However, the thought occurs that Python (2.4.1) may not have the ability to take advantage of the dual processors, so my question: Does it? If not, who knows where there might be info from people trying to make Python run 64-bit, on multiple processors? Thanks! John Brawley -- peace JB jg*******@charter tetrahedraverse NOTE! Charter is not blocking viruses, Therefore NO ATTACHMENTS, please; They will not be downloaded from the Charter mail server. __Prearrange__ any attachments, with me first.

解决方案

"John Brawley" <jg*******@earthlink> writes:

However, the thought occurs that Python (2.4.1) may not have the ability to take advantage of the dual processors, so my question: Does it? No. If not, who knows where there might be info from people trying to make Python run 64-bit, on multiple processors? Thanks!

Nobody is trying it in any serious way.

John Brawley wrote:

Greetings, all.I have a program I''m trying to speed up by putting it on a new machine.The new machine is a Compaq W6000 2.0 GHz workstation with dual XEONprocessors.I''ve gained about 7x speed over my old machine, which was a 300 MHz AMDK6II, but I think there ought to be an even greater speed gain due to thetwo XEONs.However, the thought occurs that Python (2.4.1) may not have the ability totake advantage of the dual processors, so my question:Does it? Sure, but you have to write the program to do it. One Python process will only saturate one CPU (at a time) because of the GIL (global interpreter lock). If you can break up your problem into smaller pieces, you can do something like start multiple processes to crunch the data and use shared memory (which I haven''t tinkered with...yet) to pass data around between processes. Or an idea I''ve been tinkering with lately is to use a BSD DB between processes as a queue just like Queue.Queue in the standard library does between threads. Or you could use Pyro between processes. Or CORBA. If not, who knows where there might be info from people trying to makePython run 64-bit, on multiple processors?Thanks!John Brawley --peaceJBjg*******@chartertetrahedraverseNOTE! Charter is not blocking viruses,Therefore NO ATTACHMENTS, please;They will not be downloaded from the Charter mail server.__Prearrange__ any attachments, with me first.

HTH, JMJ

Jeremy Jones <za******@bellsouth> writes:

to pass data around between processes. Or an idea I''ve been tinkering with lately is to use a BSD DB between processes as a queue just like Queue.Queue in the standard library does between threads. Or you could use Pyro between processes. Or CORBA.

I think that doesn''t count as using a the multiple processors; it''s just multiple programs that could be on separate boxes. Multiprocessing means shared memory. This module might be of interest: poshmodule.sf

更多推荐

双处理器

本文发布于:2023-11-27 21:39:16,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1639692.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:处理器

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!