⇤ ← Revision 1 as of 2009-05-19 16:34:49
430
Comment:
|
← Revision 2 as of 2009-05-19 17:25:39 ⇥
655
|
Deletions are marked like this. | Additions are marked like this. |
Line 24: | Line 24: |
== Adjust checkinterval == Increasing the [[http://docs.python.org/library/sys.html#sys.setcheckinterval | check interval]] may improve performance for CPU-bound multithreaded programs, at the cost of I/O responsiveness. |
Concurrency Tips & Tricks
Use with statement to manage locks
Starting in Python 2.5, the with statement is a far easier way to manage locks:
This is equivalent to:
Adjust checkinterval
Increasing the check interval may improve performance for CPU-bound multithreaded programs, at the cost of I/O responsiveness.