Can anyone please help me asap on this code using c codeand using the semaphore function. Please dont copy the incorrectanswer as i have lost many questions getting wrong answer. Pleasehelp me its very urgent.
Task 5: Implement semaphores (30 marks) Copy your code from Task4 into a new directory named task5.
Stage 1 Replace the use of busy waiting with semaphores to achievemutual exclusion and synchronise message passing between theproducer and consumer. As with Task 1, you will need to researchthe Linux system calls necessary to accomplish this. The semgetfunction is a good starting point.
• Your producer should now initially sleep
PayPal Gateway not configured
PayPal Gateway not configured