Program termination: Difference between revisions
Content added Content deleted
Line 182: | Line 182: | ||
}</lang> |
}</lang> |
||
={{header|Clojure}}== |
=={{header|Clojure}}== |
||
{{trans|Java}} |
{{trans|Java}} |
||
The call <tt>System.exit</tt> does not finalize any objects by default. This default is to keep the program thread-safe. From the javadocs for the method to change this default: "may result in finalizers being called on live objects while other threads are concurrently manipulating those objects, resulting in erratic behavior or deadlock." |
The call <tt>System.exit</tt> does not finalize any objects by default. This default is to keep the program thread-safe. From the javadocs for the method to change this default: "may result in finalizers being called on live objects while other threads are concurrently manipulating those objects, resulting in erratic behavior or deadlock." |
||
Line 199: | Line 199: | ||
; conventionally, error code 0 is the code for "OK", |
; conventionally, error code 0 is the code for "OK", |
||
; while anything else is an actual problem |
; while anything else is an actual problem |
||
</lang> |
|||