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