5 Replies - 3276 Views - Last Post: 24 August 2011 - 04:36 PM

#1 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 9497
  • View blog
  • Posts: 35,844
  • Joined: 12-June 08

Parallel.For Loop == mind blowing!

Posted 19 August 2011 - 11:58 AM

I have to say - wow. Parallel.for loops? Are you f'n kidding me?! You mean I can just ignore a quarter of my generic task processing and throw it all in a for loop!? Eeek! I just squealed like a girl in my cube!

Is anyone using these yet? What sort of work are you processing with them? Do you enjoy parallel.for loops, are are they just a short cut that is a hassle?

http://msdn.microsof...y/dd728073.aspx
http://msdn.microsof...y/dd470426.aspx
http://msdn.microsof...rallel.for.aspx
http://msdn.microsof...y/dd460703.aspx

Is This A Good Question/Topic? 0
  • +

Replies To: Parallel.For Loop == mind blowing!

#2 _HAWK_  Icon User is offline

  • Master(Of Foo)
  • member icon

Reputation: 1062
  • View blog
  • Posts: 4,142
  • Joined: 02-July 08

Re: Parallel.For Loop == mind blowing!

Posted 21 August 2011 - 08:00 PM

I use threads, tasks, asynch TCP, but not parallel.for loops yet. I'm sure I can find one soon. Thanks for the tutorial.
Was This Post Helpful? 0
  • +
  • -

#3 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 9497
  • View blog
  • Posts: 35,844
  • Joined: 12-June 08

Re: Parallel.For Loop == mind blowing!

Posted 21 August 2011 - 09:05 PM

No prob. It's saved me some time for my scheduled apps that process huge chunks of data. Go 4.0 framework!
Was This Post Helpful? 0
  • +
  • -

#4 smohd  Icon User is offline

  • Critical Section
  • member icon


Reputation: 1820
  • View blog
  • Posts: 4,627
  • Joined: 14-March 10

Re: Parallel.For Loop == mind blowing!

Posted 21 August 2011 - 09:46 PM

I like that feature in .NET4.0 and I am going to find time to study it. Nice sharing mod. Lets put it in our cerebellum ;)
Was This Post Helpful? 0
  • +
  • -

#5 Psyguy  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 75
  • View blog
  • Posts: 323
  • Joined: 12-January 11

Re: Parallel.For Loop == mind blowing!

Posted 22 August 2011 - 02:49 PM

I just emailed my boss and all my co-workers the link to the Parallel.For tutorial under the email heading "A reason we should upgrade to .NET FW 4.0". I currently have to use 3.5 :(
Was This Post Helpful? 0
  • +
  • -

#6 petastream  Icon User is offline

  • New D.I.C Head
  • member icon

Reputation: 8
  • View blog
  • Posts: 20
  • Joined: 23-August 11

Re: Parallel.For Loop == mind blowing!

Posted 24 August 2011 - 04:36 PM

I've successfully used Parallel.For loops for breaking out processing of rows of pixels within an image. I really enjoy how with minimal work the job is threaded across available resources. As with any other threading component you just have to remember to proxy objects using thread safe methodologies. I had my share of fun working with writablebitmap backbuffers and access restrictions. >.<

View PostPsyguy, on 22 August 2011 - 02:49 PM, said:

I just emailed my boss and all my co-workers the link to the Parallel.For tutorial under the email heading "A reason we should upgrade to .NET FW 4.0". I currently have to use 3.5 :(


http://msdn.microsof...rrency/bb896007

The 3.5 devlabs release of the parallel toolkit is linked on that page under the heading "Parallel Extensions for .NET 3.5 SP1 on DevLabs" hope this may help
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1