2007年07月26日 星期四 15:32
ÄÄÀïÓÐpython¶à½ø³ÌµÄÀý×Ó£¬Í¨¹ý¶à½ø³ÌµÄÓŵãÔÚÄÄÀÊÇÖ´ÐÐʱ¼äÉϵÄËõ¶Ìô£¿ -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070726/d06af494/attachment.htm
2007年07月26日 星期四 15:44
On 7/26/07, leopay <leopay在gmail.com> wrote: > 哪里有python多进程的例子,通过多进程的优点在哪里,是执行时间上的缩短么? 线程吧, http://www.ibm.com/developerworks/cn/linux/sdk/python/charm-25/index.html 多进程的话,你同时起多个Python 脚本同时跑没有任何问题的 > _______________________________________________ > python-chinese > Post: send python-chinese在lists.python.cn > Subscribe: send subscribe to > python-chinese-request在lists.python.cn > Unsubscribe: send unsubscribe to > python-chinese-request在lists.python.cn > Detail Info: > http://python.cn/mailman/listinfo/python-chinese > -- '''Time is unimportant, only life important! 过程改进的目标不是高品质产品,而是促生靠谱的人的组织! ''' http://zoomquiet.org blog在http://blog.zoomquiet.org/pyblosxom/ wiki在http://wiki.woodpecker.org.cn/moin/ZoomQuiet or http://202.108.44.62/moin/ZoomQuiet scrap在http://floss.zoomquiet.org douban在http://www.douban.com/people/zoomq/ ____________________________________ Pls. use OpenOffice.org to replace M$ Office. http://zh.openoffice.org Pls. use 7-zip to replace WinRAR/WinZip. http://7-zip.org/zh-cn/ You can get the truely Freedom 4 software.
2007年07月26日 星期四 15:57
ÔÚ07-7-26£¬Zoom. Quiet <zoom.quiet在gmail.com> дµÀ£º > > On 7/26/07, leopay <leopay在gmail.com> wrote: > > ÄÄÀïÓÐpython¶à½ø³ÌµÄÀý×Ó£¬Í¨¹ý¶à½ø³ÌµÄÓŵãÔÚÄÄÀÊÇÖ´ÐÐʱ¼äÉϵÄËõ¶Ìô£¿ > Ḭ̈߳ɣ¬ > http://www.ibm.com/developerworks/cn/linux/sdk/python/charm-25/index.html > > ¶à½ø³ÌµÄ»°£¬ÄãͬʱÆð¶à¸öPython ½Å±¾Í¬Ê±ÅÜûÓÐÈκÎÎÊÌâµÄ ÊǶà½ø³Ì£¬¾ÍÊÇfork£¬Õâ¸öÖ÷ÒªÓÃÔÚÄÄЩµØ·½? > _______________________________________________ > > python-chinese > > Post: send python-chinese在lists.python.cn > > Subscribe: send subscribe to > > python-chinese-request在lists.python.cn > > Unsubscribe: send unsubscribe to > > python-chinese-request在lists.python.cn > > Detail Info: > > http://python.cn/mailman/listinfo/python-chinese > > > > > -- > '''Time is unimportant, only life important! > ¹ý³Ì¸Ä½øµÄÄ¿±ê²»ÊǸßÆ·ÖʲúÆ·£¬¶øÊÇ´ÙÉú¿¿Æ×µÄÈ˵Ä×éÖ¯! > ''' > http://zoomquiet.org > blog在http://blog.zoomquiet.org/pyblosxom/ > wiki在http://wiki.woodpecker.org.cn/moin/ZoomQuiet > or http://202.108.44.62/moin/ZoomQuiet > scrap在http://floss.zoomquiet.org > douban在http://www.douban.com/people/zoomq/ > ____________________________________ > Pls. use OpenOffice.org to replace M$ Office. > http://zh.openoffice.org > Pls. use 7-zip to replace WinRAR/WinZip. > http://7-zip.org/zh-cn/ > You can get the truely Freedom 4 software. > _______________________________________________ > python-chinese > Post: send python-chinese在lists.python.cn > Subscribe: send subscribe to python-chinese-request在lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070726/9fd24c68/attachment.html
2007年07月26日 星期四 18:10
fork是个系统调用吧。 大概就是运行的是创建当前进程的一个拷贝。 实现起来好像有点麻烦,开销应该比thread线程大吧。 在07-7-26,leopay <leopay在gmail.com> 写道: > > 在07-7-26,Zoom. Quiet <zoom.quiet在gmail.com> 写道: > > > > On 7/26/07, leopay <leopay在gmail.com> wrote: > > > 哪里有python多进程的例子,通过多进程的优点在哪里,是执行时间上的缩短么? > > 线程吧, > > > > http://www.ibm.com/developerworks/cn/linux/sdk/python/charm-25/index.html > > > > 多进程的话,你同时起多个Python 脚本同时跑没有任何问题的 > > 是多进程,就是fork,这个主要用在哪些地方? > > > > > > _______________________________________________ > > > python-chinese > > > Post: send python-chinese在lists.python.cn > > > Subscribe: send subscribe to > > > python-chinese-request在lists.python.cn > > > Unsubscribe: send unsubscribe to > > > python-chinese-request在lists.python.cn > > > Detail Info: > > > http://python.cn/mailman/listinfo/python-chinese > > > > > > > > > -- > > '''Time is unimportant, only life important! > > 过程改进的目标不是高品质产品,而是促生靠谱的人的组织! > > ''' > > http://zoomquiet.org > > blog@ http://blog.zoomquiet.org/pyblosxom/ > > wiki在http://wiki.woodpecker.org.cn/moin/ZoomQuiet > > or http://202.108.44.62/moin/ZoomQuiet > > scrap在http://floss.zoomquiet.org > > douban在http://www.douban.com/people/zoomq/ > > ____________________________________ > > Pls. use OpenOffice.org to replace M$ Office. > > http://zh.openoffice.org > > Pls. use 7-zip to replace WinRAR/WinZip. > > http://7-zip.org/zh-cn/ > > You can get the truely Freedom 4 software. > > _______________________________________________ > > python-chinese > > Post: send python-chinese在lists.python.cn > > Subscribe: send subscribe to python-chinese-request在lists.python.cn > > Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn > > > > Detail Info: http://python.cn/mailman/listinfo/python-chinese > > > > _______________________________________________ > python-chinese > Post: send python-chinese在lists.python.cn > Subscribe: send subscribe to python-chinese-request在lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese > -------------- 下一部分 -------------- 一个HTML附件被移除... URL: http://python.cn/pipermail/python-chinese/attachments/20070726/2c1a1beb/attachment.html
2007年07月26日 星期四 20:09
fork ºÃÏñ²»ÊÇÓÃshare memoryµÄ thread ºÃÏñÊÇÓÃshare memoryµÄÕ¼ÓÃ×ÊÔ´ÉÙ >From: Zoom.Quiet <zoom.quiet在gmail.com> >Reply-To: python-chinese在lists.python.cn >To: python-chinese在lists.python.cn >Subject: Re: [python-chinese]求python 多进程的例子 >Date: Thu, 26 Jul 2007 15:44:48 +0800 > >On 7/26/07, leopay <leopay在gmail.com> wrote: > > 哪里有python多进程的例子,通过多进程的优点在哪里, æ¯æ§è¡æ¶é´ä¸ç缩çä¹ï¼?>线ç¨å§ï¼ >http://www.ibm.com/developerworks/cn/linux/sdk/python/charm-25/index.html > >å¤è¿ç¨çè¯ï¼ä½ åæ¶èµ·å¤ä¸ªPython èæ¬åæ¶è·æ²¡æä»»ä½é®é¢ ç > > > _______________________________________________ > > python-chinese > > Post: send python-chinese在lists.python.cn > > Subscribe: send subscribe to > > python-chinese-request在lists.python.cn > > Unsubscribe: send unsubscribe to > > python-chinese-request在lists.python.cn > > Detail Info: > > http://python.cn/mailman/listinfo/python-chinese > > > > >-- >'''Time is unimportant, only life important! >过程改进的目标不是高品质产品,而是促生靠谱的人的组 ç»? >''' >http://zoomquiet.org >blog在http://blog.zoomquiet.org/pyblosxom/ >wiki在http://wiki.woodpecker.org.cn/moin/ZoomQuiet >or http://202.108.44.62/moin/ZoomQuiet >scrap在http://floss.zoomquiet.org >douban在http://www.douban.com/people/zoomq/ >____________________________________ >Pls. use OpenOffice.org to replace M$ Office. > http://zh.openoffice.org >Pls. use 7-zip to replace WinRAR/WinZip. > http://7-zip.org/zh-cn/ >You can get the truely Freedom 4 software. >_______________________________________________ >python-chinese >Post: send python-chinese在lists.python.cn >Subscribe: send subscribe to python-chinese-request在lists.python.cn >Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn >Detail Info: http://python.cn/mailman/listinfo/python-chinese _________________________________________________________________ ÏíÓÃÊÀ½çÉÏ×î´óµÄµç×ÓÓʼþϵͳ¡ª MSN Hotmail¡£ http://www.hotmail.com
2007年07月27日 星期五 13:44
fork用于unix类环境下的多进程,很多较老的unix核心并不支持多线程。 windows下一般就是多线程。 在07-7-26,秦川 <anewrer在gmail.com> 写道: > > fork是个系统调用吧。 > 大概就是运行的是创建当前进程的一个拷贝。 > 实现起来好像有点麻烦,开销应该比thread线程大吧。 > > 在07-7-26,leopay <leopay在gmail.com> 写道: > > > > 在07-7-26,Zoom. Quiet < zoom.quiet在gmail.com> 写道: > > > > > > On 7/26/07, leopay < leopay在gmail.com> wrote: > > > > 哪里有python多进程的例子,通过多进程的优点在哪里,是执行时间上的缩短么? > > > 线程吧, > > > http://www.ibm.com/developerworks/cn/linux/sdk/python/charm-25/index.html > > > > > > > > > 多进程的话,你同时起多个Python 脚本同时跑没有任何问题的 > > > > 是多进程,就是fork,这个主要用在哪些地方? > > > > > > > > > > > _______________________________________________ > > > > python-chinese > > > > Post: send python-chinese在lists.python.cn > > > > Subscribe: send subscribe to > > > > python-chinese-request在lists.python.cn > > > > Unsubscribe: send unsubscribe to > > > > python-chinese-request在lists.python.cn > > > > Detail Info: > > > > http://python.cn/mailman/listinfo/python-chinese > > > > > > > > > > > > > -- > > > '''Time is unimportant, only life important! > > > 过程改进的目标不是高品质产品,而是促生靠谱的人的组织! > > > ''' > > > http://zoomquiet.org > > > blog@ http://blog.zoomquiet.org/pyblosxom/ > > > wiki在http://wiki.woodpecker.org.cn/moin/ZoomQuiet > > > or http://202.108.44.62/moin/ZoomQuiet > > > scrap在http://floss.zoomquiet.org > > > douban@ http://www.douban.com/people/zoomq/ > > > ____________________________________ > > > Pls. use OpenOffice.org to replace M$ Office. > > > http://zh.openoffice.org > > > Pls. use 7-zip to replace WinRAR/WinZip. > > > http://7-zip.org/zh-cn/ > > > You can get the truely Freedom 4 software. > > > _______________________________________________ > > > python-chinese > > > Post: send python-chinese在lists.python.cn > > > Subscribe: send subscribe to python-chinese-request在lists.python.cn > > > Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn > > > Detail Info: http://python.cn/mailman/listinfo/python-chinese > > > > > > > > _______________________________________________ > > python-chinese > > Post: send python-chinese在lists.python.cn > > Subscribe: send subscribe to python-chinese-request在lists.python.cn > > Unsubscribe: send unsubscribe to > > python-chinese-request在lists.python.cn > > Detail Info: http://python.cn/mailman/listinfo/python-chinese > > > > > _______________________________________________ > python-chinese > Post: send python-chinese在lists.python.cn > Subscribe: send subscribe to python-chinese-request在lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese > -------------- 下一部分 -------------- 一个HTML附件被移除... URL: http://python.cn/pipermail/python-chinese/attachments/20070727/6409e819/attachment-0001.htm
Zeuux © 2025
京ICP备05028076号