Python论坛  - 讨论区

标题:[python-chinese] 多进程应用。

2007年06月28日 星期四 11:45

wangke wangke1970在gmail.com
星期四 六月 28 11:45:53 HKT 2007

pythonÖÐÈçºÎʹÓöà½ø³ÌÄܾٸöÀý×ÓÂð£¿
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070628/481a1fbf/attachment.htm 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年06月28日 星期四 12:04

XiaQ xiaqqaix在gmail.com
星期四 六月 28 12:04:37 HKT 2007

应该是用 threading这个模块吧
具体的我也不清楚
wangke 写道:
> python中如何使用多进程能举个例子吗?
-------------- 下一部分 --------------
一个HTML附件被移除...
URL: http://python.cn/pipermail/python-chinese/attachments/20070628/0dd6327a/attachment.htm 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年06月28日 星期四 12:11

longlong asfnuts在gmail.com
星期四 六月 28 12:11:47 HKT 2007

¶àÏ̻߳¹ÊǶà½ø³Ì£¿

ÔÚ07-6-28£¬XiaQ <xiaqqaix在gmail.com> дµÀ£º
>
>  Ó¦¸ÃÊÇÓà threadingÕâ¸öÄ£¿é°É
> ¾ßÌåµÄÎÒÒ²²»Çå³þ
> wangke дµÀ:
>
> 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
>
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070628/5333724d/attachment.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年06月28日 星期四 12:16

Neo Chen openunix在163.com
星期四 六月 28 12:16:11 HKT 2007

fork()

main{

fork{


    Èç¹ûexit£¬×Ó½ø³Ì¾ÍÊǶÀÁ¢ÓÃÐÐÕâ¿é¡£ 
}

}

ÀýÈ磺socket

main{

listen 8000

fork{
    accept
    send
    recv

    Èç¹ûexit£¬×Ó½ø³Ì¾ÍÊǶÀÁ¢ÓÃÐÐÕâ¿é¡£ 
}

}
  ----- Original Message ----- 
  From: longlong 
  To: python-chinese在lists.python.cn 
  Sent: Thursday, June 28, 2007 12:11 PM
  Subject: Re: [python-chinese] ¶à½ø³ÌÓ¦Óá£


  ¶àÏ̻߳¹ÊǶà½ø³Ì£¿


  ÔÚ07-6-28£¬XiaQ <xiaqqaix在gmail.com> дµÀ£º
    Ó¦¸ÃÊÇÓà threadingÕâ¸öÄ£¿é°É
    ¾ßÌåµÄÎÒÒ²²»Çå³þ
    wangke дµÀ: 
      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





------------------------------------------------------------------------------


  _______________________________________________
  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/20070628/1a1045ae/attachment.htm 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年06月28日 星期四 12:20

Neo Chen openunix在163.com
星期四 六月 28 12:20:04 HKT 2007

ÎÒ¶Ô½ø³Ì¼ÓỊ̈߳¬ÓÐЩÐËȤ¡£µ«×Ô¼ºÃ»Ê±¼äȥʵÏÖ¡£

main{

    fork[10]{
        threading[100]{

        }
    }
}

fork³ö 10¸ö½ø³Ì£¬Ã¿¸ö½ø³Ì²úÉú 100¸öÏ̡߳£apache worker¾ÍÊÇ×îºÃµÄÀý×Ó¡£¡£
  ----- Original Message ----- 
  From: Neo Chen 
  To: python-chinese在lists.python.cn 
  Sent: Thursday, June 28, 2007 12:16 PM
  Subject: Re: [python-chinese] ¶à½ø³ÌÓ¦Óá£


  fork()

  main{

  fork{


      Èç¹ûexit£¬×Ó½ø³Ì¾ÍÊǶÀÁ¢ÓÃÐÐÕâ¿é¡£ 
  }

  }

  ÀýÈ磺socket

  main{

  listen 8000

  fork{
      accept
      send
      recv

      Èç¹ûexit£¬×Ó½ø³Ì¾ÍÊǶÀÁ¢ÓÃÐÐÕâ¿é¡£ 
  }

  }
    ----- Original Message ----- 
    From: longlong 
    To: python-chinese在lists.python.cn 
    Sent: Thursday, June 28, 2007 12:11 PM
    Subject: Re: [python-chinese] ¶à½ø³ÌÓ¦Óá£


    ¶àÏ̻߳¹ÊǶà½ø³Ì£¿


    ÔÚ07-6-28£¬XiaQ <xiaqqaix在gmail.com> дµÀ£º 
      Ó¦¸ÃÊÇÓà threadingÕâ¸öÄ£¿é°É
      ¾ßÌåµÄÎÒÒ²²»Çå³þ
      wangke дµÀ: 
        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





----------------------------------------------------------------------------


    _______________________________________________
    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/20070628/90aeb2f3/attachment.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号