Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Thread Creation at runtime.  RSS feed

 
Nits Kulkarni
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a properties file. Here i have to read line by line and create threads depending on number of lines. So i wanna know how can i monitor this file so that at runtime adding a line will notify my application to create new thread for that line?

Thanks in Advance
Nitin
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So this is about monitoring a file? Sounds more like an IO question to me. Moving...

(You might want to adjust the subject - you can do so by editing your original post using the pen and paper icon.)
 
Edwin Dalorzo
Ranch Hand
Posts: 961
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is you application the only one responsible for adding new lines to the file, or can the file be modified outside your application?
 
Nits Kulkarni
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for moving it,

We are going to add new line into the file manually and application should be notified about this update.This shud happen by appln continously monitoring the file for a new line.

How this logic should be identified?
Thanks again.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!