100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten 4,6 TrustPilot
logo-home
Arresten

COMP31212 Concurrency and Process Algebra.pdf

Beoordeling
-
Verkocht
-
Pagina's
7
Geüpload op
01-11-2023
Geschreven in
2023/2024

COMP31212 Concurrency and Process A

Instelling
Vak

Voorbeeld van de inhoud

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

Geschreven voor

Vak

Documentinformatie

Geüpload op
1 november 2023
Aantal pagina's
7
Geschreven in
2023/2024
Type
Arresten

Onderwerpen

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
Studyabroad Oxford University
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
67
Lid sinds
4 jaar
Aantal volgers
29
Documenten
1985
Laatst verkocht
2 maanden geleden
schoooldays

shop affordably

5.0

2 beoordelingen

5
2
4
0
3
0
2
0
1
0

Populaire documenten

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Veelgestelde vragen