Post: [C#/VB.NET] Parallel Method Execution [Source]
05-09-2011, 11:49 PM #1
(adsbygoogle = window.adsbygoogle || []).push({});
Originally posted by kingdeath360 View Post
Ok, had some spare time....

The System.Threading.Tasks (.NET Framework 4) namespace provides various methods of parallel programming. I am simply posting a basic implementation of the Parallel Class. With this you can invoke various methods at a same time without wanting to wait for other functions/subs to complete. So this will save time when you have some good amount of work on your hand.

C# :

[align=center]You must login or register to view this content.[/align]

VB.NET :

[align=center]You must login or register to view this content.[/align]

Note: The execution order is not fixed. It can vary! Also, it will better if the methods invoke are independent of each other.

I might later post some more on this interesting topic.
You guys have fun playing with it! :blackhat:

its a c&p///////////////////////////////

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo