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