Click here to Skip to main content
15,887,477 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Dear friends,

Please give some sample parallel programming for call function with more than one argument and return some values from the function.
Posted
Updated 13-Nov-11 3:59am
v2

Please give Google a try: http://www.google.co.uk/search?gcx=w&sourceid=chrome&ie=UTF-8&q=Parallel+Programming+in+.net+4.0[^]

In future, at least try a simple google search instead of asking a basic question. Otherwise you waste your time, and ours.
 
Share this answer
 
The request is not clear, but parallel programming has nothing to do with argument of a function and its return.

—SA
 
Share this answer
 
Sample code :
VB
Dim ds2 As New DataSet
Dim T1 As New Task(Of DataSet)((Function() FUNCTION_NAME(ARGUMENT)))
Dim T2 As New Task(Of DataSet)((Function() FUNCTION_NAME(ARGUMENT)))  
T1.Start()
T2.Start()      
ds2 = T1.Result 'DS from Function 
ds2 = T3.Result 'DS from Function
 
Share this answer
 
v2
Comments
RaisKazi 14-Nov-11 7:48am    
Edited: Added "pre" tag for code-block.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900