.NET 4.0中的并行编程

编程入门 行业动态 更新时间:2024-10-26 08:29:25
本文介绍了.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: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.

请求不明确,但并行编程与函数的参数及其返回无关.
—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中的并行编程

本文发布于:2023-11-09 05:22:38,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1571495.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:NET

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!