异步插入实现任务 [英] Asynchronous insert implementation task
本文介绍了异步插入实现任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您有一个Web应用程序,并有以下要求: -
*我有一个日志方法。
*我想实现线程。
*插入后我想在没有等待的情况下释放下一个请求的线程。
*没有等待响应。
我怎么能实现这个?
解决方案
以下面的方式使用Thread。
new 主题(()= >
{
// 将代码放在此处,这将在线程中运行
} )。开始();
Hi have an web application and have following requirement :-
* I have one log method.
* I want to implement threading.
* After insertion i want to release the thread for next request without wait.
* Without any await for response.
how could i implement this ?
解决方案
Use Thread in below manner.
new Thread(() => { //Place your code here and this will run in a Thread }).Start();
这篇关于异步插入实现任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文