.NET 4.0中的并行编程 [英] Parllel Programming in .net 4.0
本文介绍了.NET 4.0中的并行编程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的朋友,
请为调用函数提供一些带有多个参数的示例并行编程示例,然后从该函数返回一些值.
Dear friends,
Please give some sample parallel programming for call function with more than one argument and return some values from the function.
推荐答案
请尝试一下Google:http://www.google.co .uk/search?gcx = w& sourceid = chrome& ie = UTF-8& q = Parallel + Programming + in + .net + 4.0 [
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.
请求不明确,但并行编程与函数的参数及其返回无关.
—SA
The request is not clear, but parallel programming has nothing to do with argument of a function and its return.
—SA
示例代码:
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
这篇关于.NET 4.0中的并行编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文