Jump to content

Multi Threading In Dot Net...any Experts ?


Recommended Posts

Posted

Hi Frndz,
I am trying to work or implement some multi threading concept to increase the performance.
My scenario is i have a method at repository level, which calls internally 5 methods and they hit database.

I can run these 5 methods in parallel, no dependency.

I am looking for some samples...but couldnt find one.

Any suggestions, thoughts or guidance?

Did anyone try implementing them other than UI implementation?

Posted

Use Task Parallel Library concepts if you are using .NET 4.0.

[url="http://www.codeproject.com/Articles/152765/Task-Parallel-Library-1-of-n"]http://www.codeproject.com/Articles/152765/Task-Parallel-Library-1-of-n[/url]

Refer above link..

Posted

[quote name='CharlieSheen' timestamp='1381193730' post='1304368410']
Use Task Parallel Library concepts if you are using .NET 4.0.

[url="http://www.codeproject.com/Articles/152765/Task-Parallel-Library-1-of-n"]http://www.codeproje...-Library-1-of-n[/url]

Refer above link..
[/quote]
Thanks...i will look into the sample.

Posted

[quote name='CharlieSheen' timestamp='1381193730' post='1304368410']
Use Task Parallel Library concepts if you are using .NET 4.0.

[url="http://www.codeproject.com/Articles/152765/Task-Parallel-Library-1-of-n"]http://www.codeproje...-Library-1-of-n[/url]

Refer above link..
[/quote]

This concept wouldnt support my scenario....i am using 3.5/..but i changed to 4.0
i added the name system.threading...still i dont find task class...



even i dont see any example..that calls multiple methods internally....


anyother source??

Posted

http://msdn.microsoft.com/en-us/library/dd460717.aspx : [url="http://msdn.microsoft.com/en-us/library/dd460717.aspx"]Task Parallel Library in .NET 4.0[/url]
[color=#000000][font=Verdana, MuseoSans, Georgia,]
using System.Threading;[/font][/color][color=#000000][font=Verdana, MuseoSans, Georgia,]
using System.Threading.Tasks;[/font][/color]

[color=#000000][font=Verdana, MuseoSans, Georgia,]
[url="http://mikehadlow.blogspot.com/2010/11/using-task-parallel-library-with-aspnet.html"]http://mikehadlow.blogspot.com/2010/11/using-task-parallel-library-with-aspnet.html[/url][/font][/color]
[color=#000000][font=Verdana, MuseoSans, Georgia,]
[url="http://www.dotnetcurry.com/ShowArticle.aspx?ID=489"]http://www.dotnetcurry.com/ShowArticle.aspx?ID=489[/url][/font][/color]
[color=#000000][font=Verdana, MuseoSans, Georgia,]
see this links also if you can leverage any of these ideas.. i will also looking to this 2 morrow.. [/font][/color]
[color=#000000][font=Verdana, MuseoSans, Georgia,]
never implemented but interesting to try since its one of the common realtime requirment..[/font][/color]

Posted

see this link hope ( Task Parallelism ) is what you are looking for..

[url="http://msdn.microsoft.com/en-us/library/dd537609.aspx"]http://msdn.microsoft.com/en-us/library/dd537609.aspx[/url]

Posted

Thanks for all links....will research

Posted

[quote name='CharlieSheen' timestamp='1381201333' post='1304368934']
see this link hope ( Task Parallelism ) is what you are looking for..

[url="http://msdn.microsoft.com/en-us/library/dd537609.aspx"]http://msdn.microsoft.com/en-us/library/dd537609.aspx[/url]
[/quote]

Thanks dude....this info helped a lot.....I could implement this and have difference in performance...
Thanks a lot

Posted

nee yavva ..ippudu subject Aa .....anni rendu ga kanpadutunnayi...

LTT t'row... if urgent ...pm mewill check t'row

×
×
  • Create New...