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 -04:00
This post has been archived. It cannot be replied.
Page address has been copied. To share, click to copy page address.
Share Online by QR Code

Back To Topic: Re #15734: how to lock a file in Java? I mean how java provide flock()?

Back To Forum: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论