Question
Project Description: Rotten tomatoes is a recommendation website for quality entertainment. The viewers can look for the ratings associated with every movie or series. A
Project Description:
Rotten tomatoes is a recommendation website for quality entertainment. The viewers can look for the ratings associated with every movie or series. A set of processes concurrently search in the movie database for keywords. Given a keyword (like dragon), a search process reads all the movie records, identifies only those movies whose descriptions contain the keyword, and prints these movies (names, directors, and release dates only) sorted in the decreasing order of the popularity ratings. In order that the database server does not become overloaded by many search processes, allow at most five processes at any instant. Use a counting semaphore to implement this restriction. When a sixth (or seventh or...) process attempts to make a search, it has to wait until one or more running search processes finish working with the database and signal the semaphore. Implement a synchronization method to solve the problem.
This is a project of operating System course
You have to use C programming Language to implement this problem
Please describe the code clearly so that everything Is understandble (explain the code)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started