Re: Problem with java.io.File and Multi - Threads
- From: "Oliver Wong" <owong@xxxxxxxxxxxxxx>
- Date: Tue, 07 Mar 2006 19:20:04 GMT
"Vishal" <vdedaniya@xxxxxxxxx> wrote in message news:1141705063.585423.224600@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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. ;)
"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
.
- References:
- Problem with java.io.File and Multi - Threads
- From: Vishal
- Re: Problem with java.io.File and Multi - Threads
- From: Roedy Green
- Re: Problem with java.io.File and Multi - Threads
- From: Vishal
- Problem with java.io.File and Multi - Threads
- Prev by Date: Re: Making IntelliJ sit still
- Next by Date: Re: installing C++ compiler in Eclipse 3.1.2, windows
- Previous by thread: Re: Problem with java.io.File and Multi - Threads
- Next by thread: Find Uses window keeps closing in IntelliJ
- Index(es):
Relevant Pages
|
|