You shouldn't take the approach that you described - you'll be causig
yourself all sorts of problems and really limiting your applications
performance and scalability.
I strongly suggest that you spend some time looking into Asyncronous I/O, as
this is by far the best mechanism to handle multiple incoming file streams.
Depending on your use case, you could also look into BITS, and MTOM. I
believe there are also some File Upload controls available for ASP.Net 2.0 -
these may do the trick for you as well.
--
Chris Mullins, MCSD.NET, MCPD:Enterprise, Microsoft C# MVP
http://www.coversant.com/blogs/cmullins
"pradeep_TP" <pr*******@discussions.microsoft.comwrote in message
news:D1**********************************@microsof t.com...
Hello All,
I am developing a file uploading sever. I am planning to create this as a
multithreaded application in which every file upload request will be done
through a separate thread from the thread pool. While going through some
articles on the internet, I came to know that it is a bad practice to
allocate thread from thread pool for long running application.
I would like to know what other alternatives are available in the
threading
context, so that I can delegate the task of uploading files to different
threads for files which are very large in size.
Thanks
pradeep_tp