Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Sowing and Reaping in parallel' topicStudent Support Forum > General > Archives > "Sowing and Reaping in parallel"

Next Comment >Help | Reply To Topic
Author Comment/Response
Patrick
02/23/11 4:31pm

Reap[ParallelDo[Sow[#]&/@Range[i],{i,10}]]
This should go through the range 1 to 1, sowing it, then the range 1 to 2, sowing that, then 1 to 3... and then finally reap the whole lot. However, it doesn't reap anything at the end, returning {Null,{}}.
Is this some problem with Parallelize and Sow/Reap that's not in the documentation for either? It works as intended with Do rather than ParallelDo.

URL: ,

Subject (listing for 'Sowing and Reaping in parallel')
Author Date Posted
Sowing and Reaping in parallel Patrick 02/23/11 4:31pm
Re: Sowing and Reaping in parallel Isaac 02/25/11 06:28am
Re: Re: Sowing and Reaping in parallel Patrick 02/25/11 09:09am
Next Comment >Help | Reply To Topic