aspose file tools
The moose likes Threads and Synchronization and the fly likes Java Threads Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Threads and Synchronization
Reply Bookmark "Java Threads" Watch "Java Threads" New topic
Author

Java Threads

Ranjan Dalai
Greenhorn

Joined: May 01, 2003
Posts: 5
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

Joined: Oct 05, 2001
Posts: 1158

helps to show some code. Sounds like your program is finishing rather fast. maybe their is a bug.
 
IntelliJ Java IDE
 
subject: Java Threads
 
Threads others viewed
Additional IBM 340 pre-assessment questions
NX: concerning logging
Need to program for executing ping statement..
Java Threads
Logging
IntelliJ Java IDE

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture