更新时间:2022-06-06 02:26:04
请尝试一下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