Bug 59350 - High CPU usage on close app With Threads open
Summary: High CPU usage on close app With Threads open
Alias: None
Product: Runtime
Classification: Mono
Component: General (show other bugs)
Version: 5.2 (2017-04)
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2017-09-08 16:28 UTC by mxater
Modified: 2018-01-24 16:37 UTC (History)
4 users (show)

See Also:
Is this bug a regression?: ---
Last known good build:

High cpu usage by mono and app (13.37 KB, image/png)
2017-09-08 16:28 UTC, mxater

Description mxater 2017-09-08 16:28:15 UTC
Created attachment 24656 [details]
High cpu usage by mono and app

I using C#, is a console app, when I close the app with "Environment.Exit(0)", the app begin to use a lot CPU.

My app has openend Threads, and I close this before send Exit().

I use Thread.Sleep() before Exit().
Comment 1 Ludovic Henry 2017-09-21 20:54:51 UTC
Could you please attach with a debugger (lldb or gdb) and provide the stacktraces of all the threads? Thank you
Comment 2 Ludovic Henry 2018-01-24 16:37:31 UTC
Please provide information requested in previous comment to reopen. Thank you.

Note You need to log in before you can comment on or make changes to this bug.