Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
HelgeStenstrom opened this issue Aug 29, 2019 · 1 comment
Labels

Comments

@HelgeStenstrom
Copy link
Contributor

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.

@HelgeStenstrom
Copy link
Contributor Author

I guess my question is related to goxr3plus/java-stream-player#15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant