Programmatically
Member
- Joined
- Feb 2, 2008
- Messages
- 8
- Programming Experience
- 5-10
I'm building a multithreaded program, and i'm trying to figure out the best way to go about passing data between them.
I'm not going to just be sending variables between them.. For that i can use monitoring and whatnot..
What i'm trying to do is: I want to take a list of domains that I have (Starting from a text file), and pass them through the different threads.. Grabbing a new domain whenever a thread is finished completing it's task. Would it be best to open a file on the main thread, and call a function to retrieve the next line.. Or is it smarter to use something like a datagrid/sql db/array to rotate through them.. Please let me know what you think.. I need them threadsafe and the cpu intensiveness very low.. Thank you in advance.
I'm not going to just be sending variables between them.. For that i can use monitoring and whatnot..
What i'm trying to do is: I want to take a list of domains that I have (Starting from a text file), and pass them through the different threads.. Grabbing a new domain whenever a thread is finished completing it's task. Would it be best to open a file on the main thread, and call a function to retrieve the next line.. Or is it smarter to use something like a datagrid/sql db/array to rotate through them.. Please let me know what you think.. I need them threadsafe and the cpu intensiveness very low.. Thank you in advance.