Introduction - If you have any usage issues, please Google them yourself
According to the mutual restriction between the philosophers' process, the reasonable signal quantity and the initial value of the signal quantity are set up.
Create 5 threads to simulate the 5 philosopher processes, respectively.
The synchronization relationship between threads is realized between the philosophers' threads through the P and V operations of the semaphore.