Click here to Skip to main content
15,902,905 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: parallel processing Pin
Eddy Vluggen12-Mar-10 1:01
professionalEddy Vluggen12-Mar-10 1:01 
GeneralRe: parallel processing Pin
Tiju John12-Mar-10 3:16
Tiju John12-Mar-10 3:16 
AnswerRe: parallel processing Pin
Dave Kreskowiak12-Mar-10 2:00
mveDave Kreskowiak12-Mar-10 2:00 
GeneralRe: parallel processing Pin
Tiju John12-Mar-10 3:20
Tiju John12-Mar-10 3:20 
GeneralRe: parallel processing Pin
Dave Kreskowiak12-Mar-10 5:09
mveDave Kreskowiak12-Mar-10 5:09 
AnswerRe: parallel processing Pin
frito_burrito12-Mar-10 4:39
frito_burrito12-Mar-10 4:39 
GeneralRe: parallel processing Pin
harold aptroot12-Mar-10 5:15
harold aptroot12-Mar-10 5:15 
GeneralRe: parallel processing Pin
Luc Pattyn12-Mar-10 6:15
sitebuilderLuc Pattyn12-Mar-10 6:15 
There is more to it.

All primes except 2 and 3 are of the form multiple-of-6 plus or minus 1, so the two threads should be devoted to those two series, i.e. the increment needs to be 6, not 4 so multiples of 3 aren't even considered (I agree, they would fall out pretty quickly).

And then all that fancy enumerator stuff is costing cycles; its overhead well exceeds its functionality. A cleanly coded single thread can completely outpace what has been shown. I have a primes workbench where I experiment a lot, it currently locates all primes up to 10 million in 0.25 seconds; and up to 1 billion in 6.8 seconds.

Eventually I will write a little article on it!

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.

GeneralRe: parallel processing Pin
harold aptroot12-Mar-10 6:35
harold aptroot12-Mar-10 6:35 
GeneralRe: parallel processing Pin
Luc Pattyn12-Mar-10 6:49
sitebuilderLuc Pattyn12-Mar-10 6:49 
GeneralRe: parallel processing Pin
harold aptroot12-Mar-10 7:04
harold aptroot12-Mar-10 7:04 
GeneralRe: parallel processing Pin
Luc Pattyn12-Mar-10 7:43
sitebuilderLuc Pattyn12-Mar-10 7:43 
GeneralRe: parallel processing Pin
harold aptroot12-Mar-10 7:47
harold aptroot12-Mar-10 7:47 
GeneralRe: parallel processing Pin
Luc Pattyn12-Mar-10 7:53
sitebuilderLuc Pattyn12-Mar-10 7:53 
GeneralRe: parallel processing Pin
harold aptroot12-Mar-10 8:01
harold aptroot12-Mar-10 8:01 
GeneralRe: parallel processing Pin
Dave Kreskowiak12-Mar-10 8:09
mveDave Kreskowiak12-Mar-10 8:09 
GeneralRe: parallel processing Pin
Luc Pattyn12-Mar-10 8:37
sitebuilderLuc Pattyn12-Mar-10 8:37 
GeneralRe: parallel processing Pin
Dave Kreskowiak12-Mar-10 8:51
mveDave Kreskowiak12-Mar-10 8:51 
GeneralRe: parallel processing Pin
Luc Pattyn12-Mar-10 9:19
sitebuilderLuc Pattyn12-Mar-10 9:19 
Question[vb.net 2008] How get mp3 title,author and lenght ? Pin
nRush11-Mar-10 21:52
nRush11-Mar-10 21:52 
AnswerRe: [vb.net 2008] How get mp3 title,author and lenght ? Pin
Giorgi Dalakishvili11-Mar-10 22:14
mentorGiorgi Dalakishvili11-Mar-10 22:14 
GeneralRe: [vb.net 2008] How get mp3 title,author and lenght ? Pin
nRush11-Mar-10 23:30
nRush11-Mar-10 23:30 
GeneralRe: [vb.net 2008] How get mp3 title,author and lenght ? Pin
Richard MacCutchan12-Mar-10 1:07
mveRichard MacCutchan12-Mar-10 1:07 
GeneralRe: [vb.net 2008] How get mp3 title,author and lenght ? Pin
nRush12-Mar-10 2:54
nRush12-Mar-10 2:54 
QuestionCitrix & WebEx Wrestle Microsoft Might in the Collaboration Tools Category at Developer Summit Award(developersummit.com/gida3_llist) Pin
Shaguf Mohtisham11-Mar-10 20:15
Shaguf Mohtisham11-Mar-10 20:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.