How does Jnotify works
===

I am being able to use `Jnotify` for listening events as file cration, modification etc. My concern is how Jnotify works. I mean what it uses get event. Is it safe to use in refrence of resource uses. I read [here](http://stackoverflow.com/questions/11100003/why-does-jnotify-consume-so-much-resources) that it consume much resources. 

Another way i can solve my problem is a while loop till a condition then program is shutdown. 

Which will be better to use consumes less resources.Thanks.