why the following python program does not face any concurrency problems without synchronize mechanism?
TheSaint
nobody at nowhere.net.no
Sun Jul 10 10:50:11 EDT 2011
More information about the Python-list mailing list
Sun Jul 10 10:50:11 EDT 2011
- Previous message (by thread): why the following python program does not face any concurrency problems without synchronize mechanism?
- Next message (by thread): What makes functions special?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
smith jack wrote: > have run this program for many times,and the result is always 5050 You might not need to make it in a multiprocess environment Try it in the python (3) shell >>> tot= 0 >>> for k in range(1,100): ... tot += k ... print(tot) ... And watch the risults. -- goto /dev/null
- Previous message (by thread): why the following python program does not face any concurrency problems without synchronize mechanism?
- Next message (by thread): What makes functions special?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list