WebClub-NITK / Hacktoberfest-2k20

Repository for Hacktoberfest 2020 Meetup at NITK Surathkal
14 stars 53 forks source link

Dining Philosophers Problem #100

Closed SPandeyCodes closed 4 years ago

SPandeyCodes commented 4 years ago

Resolves Issue #86

Description

The dining philosophers problem states that there are 5 philosophers sharing a circular table and they eat and think alternatively. There is a bowl of rice for each of the philosophers and 5 chopsticks. A philosopher needs both their right and left chopstick to eat. The same problem is solved here using semaphores using C language. The eating process can be limited (or infinite) based on the user.

Technical Specifications

    Use C language to solve the Problem

Screenshots (if required)

     Screenshots taken from an online compiler is attached along with the folder. 

How to run

   use C compiler and can be a simple run without any input methods.

Checklist

SPandeyCodes commented 4 years ago

Create Dining Philosophers Problem with semaphores using C

SPandeyCodes commented 4 years ago

Hi @suhasks123 . Please review.

viveshy commented 4 years ago

@suhasks123, is the PR good to be merged?

viveshy commented 4 years ago

@SPandeyCodes Add the screenshots of your working program and then it'll be merged. Add screenshots containing the following: