Create your own awesome maps

Even on the go

with our free apps for iPhone, iPad and Android

Get Started

Already have an account?
Log In

Chapter 20 Programming Multi-core CPUs by Mind Map: Chapter 20
Programming
Multi-core CPUs
0.0 stars - 0 reviews range from 0 to 5

Chapter 20 Programming Multi-core CPUs

Motivation

There is No more Free lunch in CPU serial performance

Ex. Sun/Intel -> 32 cores

go multi/many cores

How

use many processes

spawn / send/receive

not too many, just enough, えー

Scalability

Small message, Large Workset

qsort, larger message, smaller workset

fib, smaller message, larger workset

Example

pmap

他にもやり方はある

粒度を調節できるようにしとくとか

Map Reduce

Google の並列基盤

File System の indexer をつくるよ

Pitfalls

Side Effects

ふつうは Shared Memory による同期

Erlang には shared memory ない

それでも shared resource はある, Ex. ETS, use `private` to serialize it

Sequential Bottlenecks

Change Algorithms would work

Ex. Distributed Ticket-Boarding System, ふつうにやると直列, 偶数/奇数でプロセスに分けるなど