Run Code  | Code Wall  | Users  | Misc  | Feedback  | About  | Login  | Theme  | Privacy 

volatile thread-safe object

Language: Editor: Layout:
+ ] Compiler args + ] Show input
Compilation time: 0.38 sec, absolute running time: 0.14 sec, cpu time: 0 sec, memory peak: 3 Mb, absolute service time: 0.53 sec   
fork mode |  history  | discussion
method 1 called (thread-safe)!
Locking...
method 2 called (critical section only)!
Unlocking...
method 1 called (thread-safe)!