Find Jobs
Hire Freelancers

The Sleeping Teaching Assistant

$30-250 USD

Terminado
Publicado hace alrededor de 6 años

$30-250 USD

Pagado a la entrega
THE SLEEPING TEACHING ASSISTANT PROBLEM A university computer science department has a teaching assistant (TA) who helps undergraduate students with their programming assignments during regular office hours. The TA’s office is rather small and has room for only one desk with a chair and computer. There are three chairs in the hallway outside the office where students can sit and wait if the TA is currently helping another student. When there are no students who need help during office hours, the TA sits at the desk and takes a nap. If a student arrives during office hours and finds the TA sleeping, the student must awaken the TA to ask for help. If a student arrives and finds the TA currently helping another student, the student sits on one of the chairs in the hallway and waits. If no chairs are available, the student will come back at a later time. PROJECT GUIDELINES 1. Write program in C language using Pthreads, mutex locks and semaphores for THIS ‘SLEEPING TEACHING ASSISTANT’ Problem. 2. Based on your code just answer these simple questions: i. How many threads/processes are there? ii. What does each thread simulate? iii. Will each thread be blocked at some time of simulation? If yes, explain the circumstances. iv. When will a blocked thread be waked up, and by whom? v. How many semaphores are there in your project, what is the purpose for having each? 3. Display messages to the screen to show the state of the system. A good way to validate your program running correctly is to perform some simple output messages to show the state of the system. You can experiment with these messages, but in general you want to demonstrate what each thread is doing. You can use an integer number to identify each thread. 4. If your program needs any arguments in command line, you need prompt proper message for the arguments and validate the input. 5. You may consider how to terminate your program. There are many options. For example, terminate after a given number of students obtaining help OR terminate after each student has taken help from the TA twice. You can choose any other reason to terminate your program. Just need to explain this in output messages. NOTE: Please also attach a text file explaining how to compile and run this program. I NEED A WORKING, EXECUTABLE CODE WITH PROPER OUTPUT
ID del proyecto: 16721331

Información sobre el proyecto

1 propuesta
Proyecto remoto
Activo hace 6 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
Adjudicado a:
Avatar del usuario
Hi there, I went through the requirements and I would like to do this project if given the opportunity. Let me know if you are interested.
$30 USD en 1 día
4,9 (786 comentarios)
7,4
7,4

Sobre este cliente

Bandera de UNITED STATES
SHAWNEE, United States
5,0
1
Miembro desde abr 17, 2018

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.