Mutex: Difference between revisions
Content added Content deleted
(Added Java) |
m (→{{header|Java}}: Adding a throws for compilability) |
||
Line 196: | Line 196: | ||
}</lang> |
}</lang> |
||
Using the mutex: |
Using the mutex: |
||
<lang java5>public class TestVolitileClass{ |
<lang java5>public class TestVolitileClass throws Exception{ |
||
public static void main(String[] args){ |
public static void main(String[] args){ |
||
VolatileClass vc = new VolatileClass(); |
VolatileClass vc = new VolatileClass(); |
||
Line 206: | Line 206: | ||
} |
} |
||
}</lang> |
}</lang> |
||
=={{header|Objective-C}}== |
=={{header|Objective-C}}== |
||