Skip to content

Latest commit

 

History

History

parallel_map

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Parallel Map

Reading Material

Exercise

You will write parallel_map:pmap/2 a parallel implementation of lists:map. Every element in the input list must me processed by a separate process, this means that a list of 100 elements will spawn 100 processes.

1> Fun = fun(X) -> X * 10 end,
2> List = [1, 2, 3, 4, 5],
3> parallel_map:pmap(Fun, List)
[10,20,30,40,50]

Check our proposed solution.