Your program takes in two command line arguments: number of reader threads, number of writer threads.
Your program creates several reader threads and several writer threads based on the arguments. Each
thread loops for several iterations for writing or reading.
Fig: 1
Fig: 2