Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Student{
- void method1(){
- // Do Something
- }
- void method2(){
- // Do Something
- }
- void someMethod(){
- synchronized(student){
- // critical section of code
- }
- student.method1();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement