2005年04月21日 星期四 21:41
动不动就要占用80%以上CPU,是有点汗....
2005年04月21日 星期四 21:48
那负载一定很重了 ?建议升级硬件吧 On 4/21/05, python leo <python.leo at gmail.com> wrote: > > 动不动就要占用80%以上CPU,是有点汗.... > > _______________________________________________ > python-chinese list > python-chinese at lists.python.cn > http://python.cn/mailman/listinfo/python-chinese > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20050421/b2102de8/attachment.html
2005年04月21日 星期四 21:53
试试这个,只能用在windows下 try: import ctypes kernel32 = ctypes.windll.kernel32 thread = kernel32.GetCurrentThread() kernel32.SetThreadPriority(thread, -50) #print "Thread priority lowered." except ImportError: pass 在05-4-21,fla liu<fla.liu at gmail.com> 写道: > 那负载一定很重了 ?建议升级硬件吧 > > On 4/21/05, python leo <python.leo at gmail.com> wrote: > > 动不动就要占用80%以上CPU,是有点汗.... > > > > _______________________________________________ > > python-chinese list > > python-chinese at lists.python.cn > > http://python.cn/mailman/listinfo/python-chinese > > > > > > > > > _______________________________________________ > python-chinese list > python-chinese at lists.python.cn > http://python.cn/mailman/listinfo/python-chinese > > > -- my gmail:lihuimail(at)gmail.com
Zeuux © 2025
京ICP备05028076号