how to implement flock() in BBS forum like rolia? how to maintain the message number

guest (servlet?)
File file = new File("xxx.txt");

synchronized(file) { // operate on the file }

"synchronized" is a function?
if it is a functin what class does it belong to?
2000-11-28 -05:00

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

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