tw.bbs.comp.lang.python
  Home FAQ Contact Sign in
tw.bbs.comp.lang.python only
 
Advanced search
July 2008
motuwethfrsasuw
 123456 27
78910111213 28
14151617181920 29
21222324252627 30
28293031    31
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
tw.bbs.comp.lang.python Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  Re: [心得] Twisted是好物!         


Author: Victor
Date: Jul 7, 2008 21:44

In the mean time, if you really want to take benefit of threads in
multiple-CPU machines, you may use Jython (based on Java) or IronPython
(based on .NET) which both rely on real threads.

Hope this helps

那篇部落格的文章這樣寫,所以說,如果我的Twisted伺服器改用IronPython跑
就可以得到multicore的好處了是這樣嗎@@?
或是Jython也可以?

我的電腦只有雙核心,跑出來可能不太明顯
我正在想要怎樣測試比較看得出來,生幾個Thread全部跑一堆的運算?
還有Twsited不知道能不能在IronPython跑

晚點有空的話來試試看,有沒有人有更多核心的有空幫忙試試看 XD

--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 118.170.137.201
no comments
  Re: [問題] 用python開啟外部程式         


Author: ©ñ¿º¹L¤é¤lªº¤j¾Ç¥Í
Date: Jul 7, 2008 20:52

※ 引述《john12 (放蕩過日子的大學生)》之銘言:
: 目前這需要這種程式,
: 就是要怎麼打出程式可以呼叫外部的程式,
: 外部程式就像是IE,MSN之類的
: 目前正不知道要用哪種指令去呼叫程式
: 很多指令都試過但是都還是出現錯誤
: 請幫幫忙!!

請問有範例可以看的嗎?
我用了那些指令還是沒辦法呼叫到程式
都是會出錯
或者有簡單的呼叫程式可以說一下的
幫幫忙!
謝謝!!

--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 203.68.164.165
no comments
  XYZ         


Author: xyz
Date: Jul 7, 2008 14:24

XFILES
no comments
  XYZ         


Author: xyz
Date: Jul 7, 2008 14:24

XFILES
no comments
  Re: [心得] Twisted是好物!         


Author: [][][]
Date: Jul 7, 2008 12:49

※ 引述《LiloHuang (相見不如懷念)》之銘言:
: 稍早有板友丟訊息問我
: 我想我還是用中文講比較好 XD
: 就我認知而言
: Ruby 與 Python 本身都不能利用任何多執行緒的優點
: 因為運作過程會有 GIL全局鎖鎖住
: 而 Twisted 則提供了一個平行的假象
: 實際上在運行的 thread 也只有一條
: 如果有方法可以真正 thread-based concurrent 運作還煩請告知 ^^
: Python 還是得用 process-based 才能達到 SMP 處理

It isn't Easy to Remove the GIL
http://www.artima.com/weblogs/viewpost.jsp?thread=214235
Guido van Rossum 關於GIL的說明

基本上就是以前曾經試過移掉GIL
但是這讓single thread慢了快兩倍

到現在py3k都要出了
看起來還是沒啥好解決方法
Show full article (0.85Kb)
no comments
  [問題] 用python開啟外部程式         


Author: ©ñ¿º¹L¤é¤lªº¤j¾Ç¥Í
Date: Jul 7, 2008 08:29

目前這需要這種程式,
就是要怎麼打出程式可以呼叫外部的程式,
外部程式就像是IE,MSN之類的
目前正不知道要用哪種指令去呼叫程式
很多指令都試過但是都還是出現錯誤
請幫幫忙!!

--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 218.174.36.243
no comments
  XYZ         


Author: xyz
Date: Jul 7, 2008 06:13

XFILES
no comments
  XYZ         


Author: xyz
Date: Jul 7, 2008 06:13

XFILES
no comments
  XYZ         


Author: xyz
Date: Jul 7, 2008 06:13

XFILES
no comments
  Re: [心得] Twisted是好物!         


Author: ¬Û¨£¤£¦pÃh©À
Date: Jul 7, 2008 01:43

稍早有板友丟訊息問我

我想我還是用中文講比較好 XD

就我認知而言

Ruby 與 Python 本身都不能利用任何多執行緒的優點

因為運作過程會有 GIL全局鎖鎖住

而 Twisted 則提供了一個平行的假象

實際上在運行的 thread 也只有一條

如果有方法可以真正 thread-based concurrent 運作還煩請告知 ^^

Python 還是得用 process-based 才能達到 SMP 處理

--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.114.71.40
※ 編輯: LiloHuang 來自: 140.114.71.40 (07/07 16:43)
no comments
1 2