
Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
Hi Roeby,
removeFiles() is user define function name, which is internally calling
File.delete() method only.
No, i am not deleting an already deleted file.
No, each threads has diff files, so there is no questions of locking
and all.
Thanks for your reply.... but i got solution for these issues.
When i called System.gc() before deleting any files then its working
fine for me. I don't know the logical reason but now its working fine
for me. ;)
Thanks,
vISHAL
Roedy Green - 07 Mar 2006 07:10 GMT
>When i called System.gc() before deleting any files then its working
>fine for me. I don't know the logical reason but now its working fine
>for me. ;)
If you can get this to work in a sample small program, I'm sure sun
would like to see it. I can't think of anything you could
legitimately do that would cause this behaviour. It sounds like
Sun/MS's bug.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
Oliver Wong - 07 Mar 2006 19:20 GMT
> Hi Roeby,
>
[quoted text clipped - 11 lines]
> fine for me. I don't know the logical reason but now its working fine
> for me. ;)
"I don't know why, but it's working now, so let's ignore it" is an okay
strategy for single threaded programs, but can lead to big problems for
multithreaded programs. I advise you to investigate further.
- Oliver