Multi-thread synchronization using semaphores

In Progress Posted 5 years ago Paid on delivery
In Progress Paid on delivery

Implement the solution for the following synchronization problems:

No-starve readers-writers solution (5 readers, 5 writers)

Writer-priority readers-writers solution (5 readers, 5 writers)

Dining philosophers solution #1

Dining philosopher’s solution #2

This is essentially a direct implementation of the solutions from Downey's book.

Download the starter code that solves the producer-consumer:

The starter code has an implementation of a simple Semaphore class.

You can adapt this code to complete it.

Name the compiled program cs_sync.

Your program should be executed by calling it from the command line as follows:

> cs_sync <problem #>

For example, to run the solution of problem 2, you will call:

> cs_sync 2

To demonstrate that your program works, you will print messages indicating what the threads are doing (e.g., "Reader 1: reading", "Philosopher 1: Thinking").

C Programming C++ Programming Computer Science Engineering Software Architecture

Project ID: #19131709

About the project

2 proposals Remote project Active 5 years ago

2 freelancers are bidding on average $40 for this job

jk901

Dear As I am a senior software developer, have rich experience with various application development using C#, VC, VB.Net, NodeJS, Matlab, java, and python If you are interested with my proposal, please let me k More

$30 USD in 1 day
(27 Reviews)
5.7
Baraiya

Hi, Hope you are well. I will give you Best results....! Please send me you all the details before award project. --- Let discus your project. Deadline and budget? --- Services: software, website, Database, We More

$50 USD in 1 day
(25 Reviews)
4.4