多踩 [英] Multi treading

查看:71
本文介绍了多踩的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

1.我有一个基本形式,可以以多种不同形式调用函数,这些函数可以并行运行,

1.               I have a basic form which call functions on a numbers of different forms,do these functions run in parrellel,

             nbsp; 

                   or are they run sequentualy",

      1.回答

       1. Answer

                         对这些函数的调用阻止了调用,这意味着调用者要等到调用完成后才能继续并进行另一个调用.

                  calls to these function are blocking calls which mean that the caller waits until the call is complete before movin on and making another call.

2.            Marco非常友好地回答了上述第一个问题.

2.              Marco has very kindly answered the first question as above.

3.                                              /p>

3.               however how can I change these functions so that they run in parallel.

推荐答案

Grum,

我阅读了您以前的文章,并开始鸣叫,但我决定不这样做.

I read your previous post and started to chime in but I decided not to.

如果要在每个表单上运行后台工作程序,则每个*应该*在不同的线程上运行.我不知道这是事实,但我看不到它还有什么用,所以我很确定那句话.

If you were to run a background worker on each of your forms, then each of those *should* run on a different thread. I don't know this to be fact but I can't see how else it could work so I'm fairly sure about that statement.

尽管如此,但有30种形式?

That said though, 30 forms??

无论您如何看待它,都将是一团糟,尤其是这些进程中的任何一个以任何方式相互影响或相互依赖.

Also what a tangled mess that'd be no matter how you figure it, ESPECIALLY if any of those processes interact or depend on each other in any way.

您能详细说明一下这30种表格中的每种用途吗?

Can you explain more about just what you're doing with each of those 30 forms?


这篇关于多踩的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆