Hey i need help with my c program which deals with multithreading

Job ID: 35242077

Budget: $10 – $30 USD

i have most of it done but it has some issues

You will need to change the code up a bit and add condition variables and locks

this should be the result

The product type should be 1 or 2 depending on the process that created the product
- product id should increase by one each time one is produced
- consumer id will always be 1,2,3, or 4 depending on which thread consumer consumes the product
- consumer count will increase by 1 each time one is consumed