本文介绍了使用多线程来加载大量页面内容吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个Asp.Net应用程序,如果使用多线程加载沉重页面的内容对一种重要的操作来说徘徊的话,我会徘徊.假设有一个页面在其load_page方法中包含三个主要方法,并且这三个方法执行逻辑和繁重的操作,例如数据库访问和一些其他操作,这些操作可能会稍有延迟.那么,这三种方法应该在不同的线程中实现还是应该让它们在页面加载方法中执行?我真的希望页面的加载不干扰这些繁琐的操作.我应该怎么办?将这些方法从主页加载线程中分离出来,我会得到什么.
期待收到您的来信.

I am building an Asp.Net application and wander if it''s a sort of important to load a heavy page''s content using multithreading. Let suppose we have a certain page that contains three main methods in its load_page method, and that those three methods perform logic and heavy operations such as database access and some other operations that may delay a little. So, should those three methods be implemented in different threads or I should just let them in the page load method to be executed? I really want the page''s loading not to interfere with these heavy operations. What should I do? and what will I gain from separating these methods from the main page load''s thread.
Looking forward to hearing from you.

推荐答案



这篇关于使用多线程来加载大量页面内容吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-01 18:49