- Published on
COMP2310 - Week 3 - Programming Models
Table of Contents
Models for Concurrency
A representation of concurrent entities (processes, threads, ..) required
- Management of concurrent entities -> Create, terminate, ..
- Resource protection -> Memory, devices, ..
- Contention management -> Mutual exclusion, ..
- Synchronisation -> Semaphores, monitors, ..
- Communication -> Message passing, remote procedure calls, shared memory, ..
Explicit Concurrency
- Main focus of COMP2310
- Representation of concurrent computations by means of primitives in the form of special directives or function calls
Implicit Concurrency
- Concurrency, not explicitly specified by the programmer. The language allows for specification of what needs to be computed, but not the order of which it must be computed.
- Allows the chosen language to extract concurrency and implement it as parallism to run on the hardware