Skip to content

Isn't there a better way to exit the application, than to call System.exit()? #57

Description

@HelgeStenstrom

Calling System.exit() is a pretty brutal way of exiting.
Most programs don't need that. Since this is a multithreaded program, you need to stop the execution of these threads. There are less brutal ways to do it, like, letting them exit the loops they are in, and run to their respective ends. Then they can be joined with the main thread.

Disclaimer: I'm much less experienced with multithreaded programming than you are. I might be wrong.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions