running for 40000 iterations
main started
producer created
consumer created
after 40000 iterations, the total is 1005744277 (should be 800020000)
main done