Threads to access data from a list of files and directories
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Pradeep_KG
Posted On:   Sunday, October 24, 2004 08:38 PM

I am trying to use threads to access data from a list of files and directories which are passed as an ArrayList .



I am thinking of using a maximum of 10 threads. So can anyone help me with this approch.



I would as appreciate any better suggestions to make this process faster.

Re: Threads to access data from a list of files and directories

Posted By:   Pavan_Gattu  
Posted On:   Monday, October 25, 2004 01:38 AM

You can control the maximum number of threads using the ThreadPool class. You can implement this in your own way. This thread pool can limit the maximum number of threads being used (in your case 10). Initially you can create 10 threads from this pool. Use these threads in your applicationm and return back to the pool when the thread is complete.
About | Sitemap | Contact