调用线程动态依赖于记录 [英] Call threads depends on records dynamically

查看:63
本文介绍了调用线程动态依赖于记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们,



如何在c#中动态调用线程取决于records.please帮助我我是线程概念的新手。我将从中获取三条记录数据库所以我在后台创建了三个线程然后我必须开始。



问候,

Aravind G

解决方案

没有调用线程这样的概念。每个线程都是一个单独的调用系统,因为它有一个单独的堆栈。术语调用意味着总是发生在同一堆栈上的东西。



要进入线程,你应该开始阅读相关的编程领域。这个论坛只是一个论坛,不是详细辅导的正确场所。无论如何,线程不能与数据库记录相关联;它根本没有任何意义。学习线程,然后回来。当你开始提出更有文化的问题时,我们很乐意帮助你。



-SA


< blockquote>如果您使用的是.net4及以上版本,请使用任务 s,请阅读以下内容:

通过C#实现任务并行的基础知识 [ ^ ]


Hi friends,

how to call threads dynamically in c# depends on records.please help me i am new to thread concept.suppose i will get three records from database so i have create three threads in back ground then i have to start.

Regards,
Aravind G

解决方案

There is no such concept as "call a thread". Each thread is a separate "calling system", as it has a separate stack. The term "call" means something which always happens on the same stack.

To get into threading, you should just start reading on related fields of programming. This forum is just a forum, not a right place for detailed tutoring. Anyway, threads cannot be associated with database records; it simply does not make any sense. Learn threading and then come back. We will gladly help you when you start asking more literate questions making some sense.

—SA


If you are using .net4 and above then use Tasks, read the following:
The Basics of Task Parallelism via C#[^]


这篇关于调用线程动态依赖于记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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