Learning Goal: I’m working on a c programming project and need support to help me learn.The file of the assignment details is attached. I wrote the full code, but I’m having segmentation fault I couldn’t fix (I think it’s from q.h file for the queue), and I need your help to fix it. The code is supposed to use the files: threads.h, tcb.h, sem.h, q.h, and proj-5.c (which has the main). I attached all the files. There’s also file called “tests”, that has some test cases and the expected output.Thank you!