Build C++ Application .

Cerrado Publicado hace un año Pagado a la entrega
Cerrado Pagado a la entrega

Write a program in C++ to create N threads, each representing a lizard, and two other threads, each representing a cat. Each lizard thread will sleep for some random amount of time and wake up hungry. The hungry lizard thread will attempt to cross the driveway safely, as shown in the pseudo-code below. Crossing the driveway will take some number of seconds. Once on the other side of the driveway, the lizard will eat for some random amount of time in the monkey grass. After eating, the lizard will return home to the sago palm as soon as it safely can and sleep again. Each of the two cat threads will periodically sleep. When awake, they will look at the driveway to check on the lizards. If a cat sees too many lizards, it will play with them, causing the entire program to terminate. The two cat threads will not differ in their behavior, but they will vary in who is awake to check on the lizards and which sleeps.

Use one or more locks and semaphores (do not use monitors) to control access to the driveway (the shared resource). Make sure your implementation follows these rules:

• Do not allow too many lizards to cross the driveway at once.

• Do not use busy waits to control lizards.

• Allow the maximum possible number of lizards to cross simultaneously.

1. You must submit the following files for this project:

a. [login to view URL] (the source code file, UNIDIRECTIONAL set to 0 and WORLDEND to 180)

b. [login to view URL] (only submit this for complete the extra)

c. [login to view URL] (the results from an experiment and the changes in the file)

d. Makefile

e. [login to view URL] for you completed the extra unidirectional option or completed a partial solution of the problem

Remembered:you can't do anything outside this [login to view URL] be complete all [login to view URL] file requirements

All files & requirements in attach section

Programación en C++ Programación en C# Programación en C Arquitectura de software .NET

Nº del proyecto: #34998651

Sobre el proyecto

5 propuestas Proyecto remoto Activo hace un año

5 freelancers están ofertando un promedio de ₹17968 por este trabajo

Alihassann00

Here is a Telecommunication Engr will provide you a 100% satisfactory work. I have already worked on a lot of projects/Apps relating PYTHON, ALGORITM, C/C#/C++ Programming, MySQL, JAVA SCRIPT, REACT, HTML, .NET, NODE.J Más

₹75000 INR en 6 días
(1 comentario)
3.0
aedudzimakafui22

Hi, I have read your documentation. We can start after your discuss. Also can you tell me the deadline for it.

₹1238.12 INR en 7 días
(0 comentarios)
0.0
nehak77

I can do the work properly and effectively without any type of error in the given period of time provided.

₹1050 INR en 7 días
(0 comentarios)
0.0
praveend5

Hi, We can do this work for you. Pls connect with us to take it forward. Regards, Revathi R +91 8367562806

₹1050 INR en 7 días
(0 comentarios)
0.0