Completado

Unix and Cpp Task ( Do not bid if you can't do it on time )

you will implement the following synchronization problems:

Serialization of 3 threads

Rendezvous of two threads

Producer-consumer with 3 producers and 4 consumers (limited-size buffer).

Readers-writers problem with 5 readers and 2 writers. Here, implement the solution with a turnstile semaphore to avoid the starvation of writers.

You should test your programs to ensure they build and work properly. Notice that posix semaphores do not work on Mac OS X. Please, use the linux distribution that I asked you to install at the start of the course (ubuntu). This is the OS that I will use to test your programs.

I added an example program (see attached) that uses a semaphore wrapper class, and serializes two threads. I think this class makes coding easier as you just need to initialize the semaphores and use the function wait and signal that are part of the Semaphore class. The class implementation can be found in the file semaphore_class.h. My example is in the program serialization.cpp. To build the example program use:

g++ [url removed, login to view] -lpthread -o serial -lm

Please, submit just source code (no binaries) with a makefile that builds the programs

Due in 2 days

Pleeeeeease if you are not ready to discuss the project, please don't bid !! I got a lot of biding on the last one and non of the bidder was able to communicate with me

Habilidades: Programación en C, Linux, UNIX

Ver más: you do it, wrapper programming, will do it, ubuntu programming, semaphore programming, programming with posix threads, programming with cpp, programming on mac, programming on a mac, programming in ubuntu, os x programming, mac os x programming, i can t do my work, c programming on mac, cpp programming, cpp program example, code on time, at&t programming, mac os x 10 6, readers-writers problem

Información del empleador:
( 31 comentarios ) melbourne, United Arab Emirates

Nº del proyecto: #6585300

Adjudicado a:

kaloyan13

Hello, I know a lot about Unix and threading. Can start working on your task immediately. Thanks...

$50 USD en 1 día
(99 comentarios)
5.7