Escrito por estudiantes que aprobaron Inmediatamente disponible después del pago Leer en línea o como PDF ¿Documento equivocado? Cámbialo gratis 4,6 TrustPilot
logo-home
Examen

COMPSCI 3SD3 - COMP SCI 3SD3 Virtual Take Home Examination

Puntuación
-
Vendido
-
Páginas
5
Grado
A+
Subido en
19-04-2023
Escrito en
2022/2023

COMP SCI 3SD3 Virtual Take Home Examination McMaster University Final Examination Total: 132 pts ● THIS EXAMINATION PAPER HAS 5 PAGES AND 9 QUESTIONS. ● The exam starts at 12:30 pm and ends at 3:30 pm, i.e. 180 (3hr) minutes (for students without extra time permissions). This includes the exam time (150 minutes) plus extra time for technology (30 minutes). ● Please submit the solutions via Avenue using the same procedure as for the assignments. ● Also, just in case, send the solutions via e-mail to . ● Any question during this midterm, ask by sending an e-mail to Ryszard Janicki () 1.[10] Consider the following scenario: An office is used by several workers sharing a single printer. As a simplification of a real life scenario, it is assumed that the printer is able to print any number of jobs, independently of the number of pages those jobs have, before running out of toner. The toner is replaced by a technician whenever necessary. a.[5] Provide an FSP description of the above scenario. You must provide also a brief description of the intended behavior for each one of the processes you define. Hint: Possible processes for the above scenario are PRINTER, USER and TECHNICIAN. b.[5] Provide a Petri nets (any kind) description of the above scenario. 2.[15] Two warring neighbours are separated by a field with wild berries. They agree to permit each other to enter the field to pick berries, but also need to ensure that only one of them is ever in the field at a time. After negotiation, they agree to the following protocol. When a one neighbour wants to enter the field, he raises a flag. If he sees his neighbour’s flag, he does not enter but lowers his flag and tries again. If he does not see his neighbour’s flag, he enters the field and picks berries. He lowers his flag after leaving the field. a.[8] Model this algorithm for two neighbours n1 and n2. Specified the required safety properties for the field and check that it does indeed ensure mutually exclusive access. Specify the required progress properties for the neighbours such that they both get to pick berries given a fair scheduling strategy. Are any adverse circumstances in which neighbours would not make progress? What if the neighbours are greedy? Page 2 of 5 b.[7] Model this algorithm for two neighbours using Petri nets (any kind). 3.[30] A cook puts burgers in a pot. A client checks if there is at least one burger in the pot, and if so, the client must take one. (a)[20] Assuming two clients, this can be modelled as (i)[12] Is there a trace belonging to process DS leading to an error state? If so, give the trace. (ii)[8] We wish a client to obtain exclusive access to the pot. That is, two clients cannot check the pot at the same time, and when a client checks, he/she must take a burger (if there is at least one). Show how to modify the given model such that this behaviour is ensured. (b)[10] Provide a solution with any kind of Petri nets. Note that the cook cannot put a burger in a full pot.

Mostrar más Leer menos
Institución
COMPSCI 3SD3 - COMP SCI 3SD3 Virtual Take Home Exa
Grado
COMPSCI 3SD3 - COMP SCI 3SD3 Virtual Take Home Exa









Ups! No podemos cargar tu documento ahora. Inténtalo de nuevo o contacta con soporte.

Escuela, estudio y materia

Institución
COMPSCI 3SD3 - COMP SCI 3SD3 Virtual Take Home Exa
Grado
COMPSCI 3SD3 - COMP SCI 3SD3 Virtual Take Home Exa

Información del documento

Subido en
19 de abril de 2023
Número de páginas
5
Escrito en
2022/2023
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

$10.49
Accede al documento completo:

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Conoce al vendedor

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
AllAcademic Other
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
67
Miembro desde
6 año
Número de seguidores
39
Documentos
548
Última venta
1 mes hace
All the academic resources you need.

All the academic resources you need.

3.7

7 reseñas

5
3
4
1
3
2
2
0
1
1

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes