Find Jobs
Hire Freelancers

Debug small C Program

$30-250 USD

En curso
Publicado hace casi 11 años

$30-250 USD

Pagado a la entrega
1. First compile and execute the distributed program. Note that it deadlocks. In order to make running it less frustrating, I made it terminate with the message ``No runnable threads." 2. Modify the program by changing the order of calls to use two-phase locking and produce a version of the program with modified threads, which doesn't deadlock. Note that it never terminates, because each thread sits in a rather pointless infinite loop. 3. Now go back and solve the deadlock problem by modifying the resource management package, instead of the thread code: Check for deadlock when a thread waits for a semaphore, and if granting it would cause deadlock, make the thread wait until things are safe. (In order to check, you'll need to define some new data structures, and perhaps insert some additional code into each thread to manage them.)
ID del proyecto: 4534402

Información sobre el proyecto

13 propuestas
Proyecto remoto
Activo hace 11 años

¿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

Sobre este cliente

Bandera de UNITED STATES
Denville, United States
5,0
4
Miembro desde abr 17, 2013

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.