100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4,6 TrustPilot
logo-home
Judgments

COMP31212 Concurrency and Process Algebra.pdf

Rating
-
Sold
-
Pages
7
Uploaded on
01-11-2023
Written in
2023/2024

COMP31212 Concurrency and Process A

Institution
Course

Content preview

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

Written for

Course

Document information

Uploaded on
November 1, 2023
Number of pages
7
Written in
2023/2024
Type
Judgments

Subjects

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Studyabroad Oxford University
Follow You need to be logged in order to follow users or courses
Sold
67
Member since
4 year
Number of followers
29
Documents
1985
Last sold
2 months ago
schoooldays

shop affordably

5,0

2 reviews

5
2
4
0
3
0
2
0
1
0

Trending documents

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card or EFT and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions