This example shows synchronization between two threads consumer and
producer.The producer creates products and save them into the db.