Detecting hanging/unresponsive processes programmatically

Questions and Answers about all things *OS (macOS, iOS, tvOS, watchOS)

Detecting hanging/unresponsive processes programmatically

Postby jade » Sun Apr 14, 2019 2:50 pm

Hi,

I want to write a program that detects hanging (unresponsive) processes. So whenever Activity Monitor or the Force Quit Applications window marks a process as "not responding", I want my program to detect this state too.

I know that spindump can help here. It marks the process I use for testing as "Unresponsive". However, spindump is quite a CPU hog. I don't need the stack traces spindump delivers. I just need to know the process ID, the program/application and a few more information.

Is there another, simpler way to detect hanging processes?

Regards,
Jade
jade
 
Posts: 5
Joined: Sun Apr 14, 2019 1:40 pm

Return to Questions and Answers

Who is online

Users browsing this forum: No registered users and 1 guest

cron