im implementing a program in C which uses the consumer producer problem and im encountering a segmentation fault error. Basically i have 1 producer thread and N consumer threads