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