I have found the solution myself on java.sun.com. Use a new file as a semaphore. Through it have some drawback,but it is platform independence. thank you all

guest (servlet)
(#16719@0)
2000-12-1 -05:00

回到话题: Re #15734: how to lock a file in Java? I mean how java provide flock()?

回到论坛: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论

URL:   
http://www.rolia.net/zh/post.php?f=0&p=16719