Answer all Consider a scenario in which several processes compete…Answer allConsider a scenario in which several processes compete for access to the same resource (e.g., a file or some memory address). When a process is starved due to resource unavailability, a timer is used to stop (i.e., kill) the process after a predetermined time interval. Once the process is terminated, attempt to gain access to the desired resource. The scenario and logic should be different than the “More Signals and Semaphores in Linux” activity from the Activity 3 Guide. The program from the Activity 3 Guide needs to be extended or enhanced.For example, a user could be prompted programmatically to check if a process is not available, and if not available, then the process could be terminated. This would simulate the same process users perform with the Task Manager on Windows or the Activity Manager on the Mac. Creat a C program that implements the scenario using two processes that are created using fork(). Print the necessary process data using fprintf to show a log of activities: which processes are running, what resource they are trying to access, whether the resource is available, and whether the process is starved.After analyzing the activity log produced by your program, assess how efficient the use of a timer to solve deadlock situations was. Is the solution scalable to multiple processes and threads? What are the limitations, if any? If you identified problems with this strategy, suggest a different approach and explain why it would be better. If the timer proves to be a successful approach, just state that and no further alternatives need to be explored.Deliverables:1. Cover seet with the name of this assignment, date, and your name.2. Detailed description of the scenario explaining your approach to implementation in C.3. Include a flowchart that demonstrates the logic of the program.4. Coding results:a. All the source code files. Comment your code, describing the solution and identifying the programmer. Zip up the source code (not the binaries) in a single zip file.b. A file containing the output generated by the program (activity log). The output should be neatly formatted using the printf() command.c. An analysis of the program output and the suitability of the approach to deadlock resolution, using the questions in the assignment description as a guide.d. Screencast URL showing successful and correct execution of the code, code walk-through that also discussed how a deadlock was avoided and recovered from, and a discussion of the analysis for how the code operated.5. Package the screencast URL, flowchart, description of the solution, and analysis into a Microsoft Word document and upload it to the learning management system (LMS).6. Zip up the source code (not the binaries) and activity log in a single zip file and upload it to the learning management system text5.33 Seismic ground noise. Seismicground noise describes the persistentvibration of the ground du… Show more… Show more textDuring the preliminary design of aretaining wall factor of safety resultshave indicated that driving… Show more… Show more textEarthquake Engineering Two harmonicdisplacement waves Both with UnitAmplitude First wave has… Show more… Show moreEngineering & Technology Civil Engineering

Order your essay today and save 20% with the discount code ESSAYHELP