CS621 Week 6
CS621 Week 6
Objective
s
Mechanisms for Concurrency
Control.
Definition of Concurrency
• Synchronization is a mechanism
Synchronizatio that controls access on shared
n and resources between multiple
Coordination activities. It enforces exclusiveness
are two basic and ordered access on the resource
by different activities.
approaches to • Coordination aims at the
tackle this orchestration of collaborating
challenge: activities.
The overall time to perform the series of tasks
is reduced.
Objective
Parallel Programming Technique.
s
Distributed Programming
Technique.
Achieving Concurrency
Objective
s
Van Roy Approaches for
Programming Concurrency.
Concurrency Control: Models for
Programming Concurrency
Objective
s
Characteristics of Memory
Hierarchy.
Memory Hierarchies
Objective
s
Memory Latency Example.
Memory system, and not processor speed, is
often the bottleneck for many applications.
Limitations of
Memory
System
Performance Memory system performance is largely
captured by two parameters, latency and
bandwidth.
Latency: Is the time from
Bandwidth: Is the rate at
the issue of a memory
which data can be pumped
request to the time the data
to the processor by the
is available at the
memory system.
processor.
It is very important to understand the
difference between latency and
bandwidth.
Limitations of
Consider the example of a fire-hose. If
Memory the water comes out of the hose two
System seconds after the hydrant is turned on,
Performance the latency of the system is two
seconds.
Cont… • Once the water starts flowing, if the hydrant
delivers water at the rate of 5 gallons/second,
the bandwidth of the system is 5 gallons/second.
• If you want immediate response from the
hydrant, it is important to reduce latency.
• If you want to fight big fires, you want high
bandwidth.
Memory Latency Example
Objective
s
Effect of Cache with Example.
Improving Effective Memory Latency
Using Caches
Caches are small and fast memory elements between the
processor and DRAM.
Objective
s
Effect of Memory Bandwidth
Example.
Effect of Memory Bandwidth