Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server1
- +- servlet container
- +- application1
- | +- thread1
- | +- thread2
- +- application2
- +- thread1
- +- thread2
- server2
- +- servlet container
- +- application1
- | +- thread1
- | +- thread2
- +- application2
- +- thread1
- +- thread2
- abstract class MyWriter{
- private FileChannel file;
- public void writeSomething(byte[] b){
- // get VM scope write lock here
- // get file lock here
- // do write
- // release file lock
- // release readwritelock lock
- }
- }
Add Comment
Please, Sign In to add comment