Find Jobs
Hire Freelancers

Develop a Mac Application

€8-30 EUR

Cerrado
Publicado hace alrededor de 8 años

€8-30 EUR

Pagado a la entrega
Question 1 Ten threads share an integer array that is initialized by main. Each thread when accessing the shared array has exclusive access. This means that no other thread in the group will be accessing it at that time. Hence, locking is not required. The threads agree to access the threads in sequence where the order of the sequence is determined by main. All the threads are released at the same time and may be executed by the scheduler in any order. However, they may only access the data in the sequence pre-determined by main. In effect this means that each thread must wait for earlier threads in the sequence to complete before accessing the data. There are three kinds of thread: TA adds x to each element in the array; TB decrements each element in the array and TC squares each element in the shared sequence. The number of each kind of thread is determined by main. (Hint: Ask yourself how many Semaphores do I need?) 3 thread Each thread do something different Question 2 Re-write the dining philosophers using Semaphores to manage access to the shared resources. The problem of deadlocks can be solved by making one of the philosophers left handed. Use this approach to avoid deadlocking.
ID del proyecto: 10104757

Información sobre el proyecto

1 propuesta
Proyecto remoto
Activo hace 8 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
1 freelancer está ofertando un promedio de €105 EUR por este trabajo
Avatar del usuario
Hello I can answer the questions as well as write the code for you. I really like Operating Systems and had the highest grade back at university on the OS class (not to mention I had completed multiple multithreaded/parallelized applications afterwards).
€105 EUR en 1 día
4,9 (31 comentarios)
7,6
7,6

Sobre este cliente

Bandera de IRELAND
Dublin, Ireland
4,9
6
Forma de pago verificada
Miembro desde mar 18, 2016

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.