Asynchronous and parallel F# 3 Asynchronous and parallel C# 4
嚜澤synchronous and parallel F# 3
&
Asynchronous and parallel C# 4.5
Peter Sestoft
BSWU 2015-03-12
itu.dk
1
Agenda
? Why is parallel programming important?
? CPU-bound parallelism in F# 3.0
? I/O-bound parallelism in F# 3.0
? Tasks in .NET 4.0, illustrated with C#
? Asynchronous programming in C# 4.5
itu.dk
3
Why parallel programming?
? Until 2004, CPUs became faster every year
每 So sequential software became faster every year
? Today, CPUs are still ca. 3 GHz as in 2004
每 So sequential software has not become much faster
? Instead, we get
每 Multicore: 2, 4, 8, ... CPUs on a chip
每 Vector instructions (4 x MAC) built into CPUs
每 Superfast Graphics Processing Units (GPU)
? 384 simple CUDA codes in this 2014 laptop
? 2880 simple (single-precision) CUDA cores in Nvidia GK110
? Herb Sutter: The free lunch is over (2005)
? More speed requires parallel programming
每 But parallel programming is difficult and errorprone
每 ... with existing means: threads, synchronization, ...
itu.dk
4
Herb Sutter: The free lunch is over, Dr Dobbs, 2005.
Figure updated August 2009.
The free lunch is over:
No more growth in single-core speed
Moore*s law
Clock speed
5
Why functional parallel
programming?
? What is the purpose of synchronization?
每 To avoid conflicting updates of shared data
? Functional programming
每 No updates to shared data
每 Instead: copying, partial sharing, intermediate
data structures, message passing, agents, ...
? Some consensus this is the way forward
每 Even in the press: Economist, 2 June 2011
每 Hiperfit project, hiperfit.dk
每 Actulus project, actulus.dk
每 MSc course
itu.dk
6
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- most common mistakes in using tasks and in asynchronous code
- asynchronous computing in c
- integrating asynchronous task parallelism with openshmem
- asynchronous and parallel f 3 asynchronous and parallel c 4
- dynamic task parallelism with a gpu work stealing runtime
- integrating asynchronous task parallelism with mpi
- concurrency and parallelism with c 17 and c 20 23
- the f asynchronous programming model
- parallel async in c time cockpit
Related searches
- calculate series and parallel circuits
- series and parallel circuits pdf
- 3 resistors in parallel calculator
- series and parallel circuits key
- 3 resistors in parallel formula
- adding series and parallel resistors
- difference between 3 73 and 4 10
- in series and parallel circuit voltage is
- difference between series and parallel batteries
- series and parallel circuits worksheet
- series and parallel circuits basics
- difference between series and parallel circuits