The aim of this task is to remove the deadlock from the codeimplemented
in :(https://www.chegg.com/homework-help/questions-and-answers/write-cpp-program-serverh-ifndef-serverh-define-serverh-include-include-include-include-us-q30759618)
You will implement this in the file mutex.cpp which is givenbelow.
You may reuse your code in the implementation of the functionsfrom the above task. Please note that the main function for thistask MUST accept input from the user.
The input should be the thread count (number of threads to use)and then the filename (an example is given above the screenshotbelow). Also remove ALL sleep functions from your code. Make sureyour deadlock is gone before submitting.
Things to note before completing this task:
1. Please note that there is an added
PayPal Gateway not configured
PayPal Gateway not configured