Microsoft SDK for Java

exitProcessAfterMainThreadReturns

This method of the SystemX class enables Win32-style process semantics, where once the thread that is executing main() returns, the process is terminated. The calling code must have the permissions to exit the virtual machine.

Syntax

public static void exitProcessAfterMainThreadReturns(boolean value);

Parameters

value A boolean flag that determines whether the process should be terminated.

Remarks

This method was added as of versions 2437 through 2925 of the Microsoft virtual machine.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.