100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten
logo-home
COMP31212 Concurrency and Process Algebra.pdf €7,56
In winkelwagen

Arresten

COMP31212 Concurrency and Process Algebra.pdf

 0 keer verkocht
  • Vak
  • Instelling

COMP31212 Concurrency and Process A

Voorbeeld 2 van de 7  pagina's

  • 1 november 2023
  • 7
  • 2023/2024
  • Arresten
avatar-seller
COMP31212


Two hours




UNIVERSITY OF MANCHESTER
SCHOOL OF COMPUTER SCIENCE




Concurrency and Process Algebra




Date: Friday 27th May 2016
Time: 09:45 - 11:45




Please answer any THREE Questions from the FIVE Questions provided

This is a CLOSED book examination

The use of electronic calculators is NOT permitted




[PTO]

, COMP31212


1. Modelling and implementing concurrent systems.

a) In the context of concurrent computational systems, explain briefly but clearly what
is meant by the following:

i. A process algebra,
ii. Interference,
iii. Mutual exclusion,
iv. Threads in Java,
v. Locks and synchronisation in Java.

(5 marks)


b) Explain clearly what is meant by a monitor as a device for structuring concurrent
systems. What sort of mechanisms may a monitor provide to control access?
(3 marks)


c) A building has two doors which record people entering and leaving via a shared
counter. The counter is incremented when a person enters the building and decre-
mented when a person leaves the building, so that the counter records the number
of people in the building.

Model this system of three concurrent processes using the process algebra FSP. In
your model, use an indexed process to model the counter, and process labelling to
form the composite system. (4 marks)


d) Now provide an implementation of the three interacting processes by writing an
outline program using threads in Java. (5 marks)


e) Explain carefully the relationship between your FSP model and the Java program
implementing it. You should explain in detail how the interaction between pro-
cesses corresponds to your use of threads, locks and synchronisation in Java.
(3 marks)




Page 2 of 7

Dit zijn jouw voordelen als je samenvattingen koopt bij Stuvia:

Bewezen kwaliteit door reviews

Bewezen kwaliteit door reviews

Studenten hebben al meer dan 850.000 samenvattingen beoordeeld. Zo weet jij zeker dat je de beste keuze maakt!

In een paar klikken geregeld

In een paar klikken geregeld

Geen gedoe — betaal gewoon eenmalig met iDeal, Bancontact of creditcard en je bent klaar. Geen abonnement nodig.

Focus op de essentie

Focus op de essentie

Studenten maken samenvattingen voor studenten. Dat betekent: actuele inhoud waar jij écht wat aan hebt. Geen overbodige details!

Veelgestelde vragen

Wat krijg ik als ik dit document koop?

Je krijgt een PDF, die direct beschikbaar is na je aankoop. Het gekochte document is altijd, overal en oneindig toegankelijk via je profiel.

Tevredenheidsgarantie: hoe werkt dat?

Onze tevredenheidsgarantie zorgt ervoor dat je altijd een studiedocument vindt dat goed bij je past. Je vult een formulier in en onze klantenservice regelt de rest.

Van wie koop ik deze samenvatting?

Stuvia is een marktplaats, je koop dit document dus niet van ons, maar van verkoper Studyabroad. Stuvia faciliteert de betaling aan de verkoper.

Zit ik meteen vast aan een abonnement?

Nee, je koopt alleen deze samenvatting voor €7,56. Je zit daarna nergens aan vast.

Is Stuvia te vertrouwen?

4,6 sterren op Google & Trustpilot (+1000 reviews)

Afgelopen 30 dagen zijn er 65040 samenvattingen verkocht

Opgericht in 2010, al 15 jaar dé plek om samenvattingen te kopen

Start met verkopen

Laatst bekeken door jou


€7,56
  • (0)
In winkelwagen
Toegevoegd