The Dining Philosophers Problem which for 5 philosophers, how to implement WIN32API application using C language for the problem? (We should take philosophers as semaphore.)
You've posted this several times now. No one is going to do your homework for you.
Hint. WIN32 API is irrelevant. It's an algorithm, not an interface you are looking for. If you want to build some sort of interface, then it is a separate issue.