- Simulate the Producer Consumer code discussed in the class.
- Extend the producer consumer simulation in Q1 to sync access of critical data using Petersons algorithm.
- Dictionary Problem: Let the producer set up a dictionary of at least 20 words with three attributes (Word, Primary meaning, Secondary meaning) and let the consumer search for the word and retrieve its respective primary and secondary meaning.
Note: This can be implemented using either Mutex locks or Petersons algorithm.
Non-Mandatory (Extra credits):
- Extend Q3 to avoid duplication of dictionary entries and implement an efficient binary search on the consumer side in a multithreaded fashion.
- Trace and understand the working of synchronization algorithms like Dijkstra, Dekkers algorithm
Reviews
There are no reviews yet.