100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
COMP31212 Concurrency and Process Algebra.pdf $7.99   Add to cart

Judgments

COMP31212 Concurrency and Process Algebra.pdf

 1 view  0 purchase
  • Course
  • Institution

COMP31212 Concurrency and Process A

Preview 2 out of 7  pages

  • November 1, 2023
  • 7
  • 2023/2024
  • Judgments
  • Unknown
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

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller Studyabroad. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $7.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

85443 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$7.99
  • (0)
  Add to cart