Find Jobs
Hire Freelancers

Build C++ Project .

₹600-1500 INR

Cerrado
Publicado hace más de 1 año

₹600-1500 INR

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
ID del proyecto: 35000237

Información sobre el proyecto

2 propuestas
Proyecto remoto
Activo hace 1 año

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
2 freelancers están ofertando un promedio de ₹1.025 INR por este trabajo
Avatar del usuario
Hello, We have been working on excel, vba, macros, finance for more than 9 years. We have more than 8 years of experience doing data based projects. I believe this is something I can for sure :) You may check the projects I have already completed here: https://www.freelancer.com/projects/excel/Excel-VBA-Data-Entry-Analysis-32285292/reviews https://www.freelancer.com/projects/excel/Data-Analytics-Project-30073140/details https://www.freelancer.com/projects/data-mining/DATA-MINING-ANALYSIS-USING-NEURAL/reviews https://www.freelancer.com/projects/excel/Hire-Excel-Expert-15193739 I would love to discuss the project further :). Best, Hem
₹1.050 INR en 2 días
4,5 (14 comentarios)
4,2
4,2
Avatar del usuario
I'm pretty good at C/C++ as well as multithreading and algorithms. Let's talk about this more in chat :)
₹1.000 INR en 7 días
4,9 (3 comentarios)
1,3
1,3

Sobre este cliente

Bandera de BANGLADESH
Dhaka, Bangladesh
5,0
53
Forma de pago verificada
Miembro desde feb 28, 2020

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.