From: jdevito01@... Date: 2008-06-10T05:34:58+09:00 Subject: Re: Trying to add threading to parse a .txt file. On Jun 9, 3:35 pm, Avdi Grimm wrote: > On Mon, Jun 9, 2008 at 2:30 PM, wrote: > > Hi All, > > > I have code that will parse a text file line by line and then send the > > variable I want to a sub routine to send pages to people. My question > > is can I use threads to parse that text file with out duplicating the > > output. Below is the code it may make more sense to look at it. > > Why do you want to use threads? > > -- > Avdi > > Home:http://avdi.org > Developer Blog:http://avdi.org/devblog/ > Twitter:http://twitter.com/avdi > Journal:http://avdi.livejournal.com As this .txt file is 200 lines long. I can send 200 individual pages now in 3:min33sec i would like to cut that time by a forth by using 4 threads. I just don't think I know enough enough about threads yet to do so. The closest thing I have come up with so far is to have 2 threads parsing two .txt file with 100 lines each in them.