Re: Background thread in ASP.net

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



You can also monitor the file as a CacheDependency.

http://msdn.microsoft.com/msdnmag/issues/04/07/CuttingEdge/

Just load the file as you need it and add it to the cache and monitor
it as a dependency. You can handle the cache remove callback to reload
the file when it changes.

Brennan Stehling
http://brennan.offwhite.net/blog/

Avadhoot wrote:
Hi,

I need to create a back ground thread in ASP.Net, but I want it be created
only once.

Here, let me explain.

I have a web application project where the user uploads an excel file. On ce
the file is uploaded and stored on the server, I need to create a thread
which runs in the background and when notified, should open the excel file
and read it's contents.

But, I do not want to create a new thread whenever user requests for the
page and uploads a new excel file. I want it to be created only once and
running in the background, and called when required.

Can any one throw some light on this problem.

Thank you.

Avadhoot K

.



Relevant Pages

  • Re: how do you get a permanent cache?
    ... So, as Sandy suggested, why don't you save as an Excel file? ... David Biddulph ... We enter them into a spreadsheet, then print it, and the computer shuts ... The next day, the cache is empty, or the computer does not ...
    (microsoft.public.excel.misc)
  • Re: [PHP] Scripts taking too much time
    ... Are you running any of the cache programs such as APC/Turck/Zend Cache? ... I'd also suggest trying some other tools to monitor the activities -- ... I'd suggest that 30-40 includes per request is a bit ... a general observation. ...
    (php.general)
  • VLOOKUP blows up file size
    ... VLOOKUP seems to cache the results in the excel file "A" with the ... I copied only the VLOOKUP formular to a new sheet "C" (still connecting ...
    (microsoft.public.excel.worksheet.functions)
  • Caching performance counters in MS application block
    ... Here's an example method that helps monitor the number of items in the cache: ... CheckCountersAreLoaded checks that the performance counters have been loaded into member variables. ... m_cacheSizeCounter is a PerformanceCounter object that monitors the size of the cache. ... If you want to get fancy, you can specify the type of internal storage class in the config file. ...
    (microsoft.public.dotnet.framework.performance)
  • Re: memory hog
    ... During a period of time vmstat shows my swap free amount of swap space ... I monitor all the open files and especially those in /tmp and /var/ ... What else can I monitor to find out who is consuming the memory? ... Solaris 9, like most modern Unixes, uses available memory to cache ...
    (comp.unix.solaris)