本文介绍了.NET 4.0中的并行编程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
—SA
The request is not clear, but parallel programming has nothing to do with argument of a function and its return.
—SA
亲爱的朋友, 请为调用函数提供一些带有多个参数的示例并行编程示例,然后从该函数返回一些值.
Dear friends, Please give some sample parallel programming for call function with more than one argument and return some values from the function.
推荐答案请尝试一下Google:www.google.co .uk/search?gcx = w& sourceid = chrome& ie = UTF-8& q = Parallel + Programming + in + + 4.0 [ ^ ] 将来,至少尝试使用简单的Google搜索而不是提出基本问题.否则,您将浪费时间,浪费我们的时间. Please give Google a try: www.google.co.uk/search?gcx=w&sourceid=chrome&ie=UTF-8&q=Parallel+Programming+in++4.0[^] In future, at least try a simple google search instead of asking a basic question. Otherwise you waste your time, and ours.
请求不明确,但并行编程与函数的参数及其返回无关.
示例代码: 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中的并行编程
发布评论