2007年06月28日 星期四 11:45
pythonÖÐÈçºÎʹÓÃ¶à½ø³ÌÄܾٸöÀý×ÓÂ𣿠-------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070628/481a1fbf/attachment.htm
2007年06月28日 星期四 12:04
应该是用 threading这个模块吧 具体的我也不清楚 wangke 写道: > python中如何使用多进程能举个例子吗? -------------- 下一部分 -------------- 一个HTML附件被移除... URL: http://python.cn/pipermail/python-chinese/attachments/20070628/0dd6327a/attachment.htm
2007年06月28日 星期四 12:11
¶àÏ̻߳¹ÊÇ¶à½ø³Ì£¿ ÔÚ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
2007年06月28日 星期四 12:16
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
2007年06月28日 星期四 12:20
ÎÒ¶Ô½ø³Ì¼ÓỊ̈߳¬ÓÐЩÐËȤ¡£µ«×Ô¼ºÃ»Ê±¼äȥʵÏÖ¡£
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
Zeuux © 2025
京ICP备05028076号