Results 1 to 3 of 3
Thread: Tail without polling
- 10-31-2008, 08:32 PM #1
Member
- Join Date
- Oct 2008
- Posts
- 1
- Rep Power
- 0
Tail without polling
I have another application that is writing to a file. I want to get the new contents that are written ASAP, in sub-second time. I've searched around and found tail implementations but as far as I can tell they all poll. That means I'd be in a spin loop polling constantly and completely consuming the CPU. I'd rather not do that.
Is there some way to get notified of new data written to a file without polling? Block on it until there's new data?
I'm on Windows Vista, JDK 1.6
Thanks!
- 10-31-2008, 10:50 PM #2
That sounds like OS specific code that would require JNI to get to the event you want to catch.
- 11-12-2008, 08:57 AM #3
Member
- Join Date
- Oct 2008
- Posts
- 1
- Rep Power
- 0
Similar Threads
-
FrameWork polling
By nanaji in forum Advanced JavaReplies: 0Last Post: 10-29-2008, 10:16 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks