Problem
I. Write a c program to implement the Dining Philosopher problem. Create a thread function for each philosopher and synchronize the states-Think, Eat, and Hungry. print the state of each philosopher in the output.
II. Write a C language program to implement the Priority-based Scheduling Algorithm.