Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Java Threads

 
Ranjan Dalai
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Iam having a problem......
My work is to process IP address one by one from a LOG file.
As the log file is very big so iam using Threads to reduce time.
Like if iam having 77 ip address then iam opening 10 connections
at a time by 10 thread...and the rest 7 ip are processed one by one..
But the thing is that when i start to run the application
the console window(JBILDER console window) goes off and next time it works or may the other time it works...i have to run again and again untill the out put comes............
if the log file is big then i have to run the application
2-3 times after than i get the console window stays..and gives the output..
But if iam not using the threads then the window nevers goes off
but the time to process is very high..3 hrs to process 100 ip address
jbuilder console window...
******************************
AppAccelerator(tm) 1.2.010 for Java (JDK 1.2), x86 version.
Copyright (c) 1997-1999 Inprise Corporation. All Rights Reserved.
robot.szukacz.pl
Company Name: 24 GODZINY SP. Z O.O.
street: UL. GARAZOWA 7
city: 02-651 WARSZAWA
location: PL
handle: nsk241211
phone: +48.226077884
Press Ctrl+C to terminate the application...
**************************************
here as i run only one single ip so no problem ,
but i run a big log file 2 mb then this window goes off......
after trying 2-3 times then the window stays and gives the output..
thanks..
so can any one help me...
Ranjan...
U can mail me at ranjankumar80@hotmail.com
 
Mr. C Lamont Gilbert
Ranch Hand
Posts: 1170
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
helps to show some code. Sounds like your program is finishing rather fast. maybe their is a bug.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!