1 of 1 people found this helpful
I found some literature on the internet talking about CPU utilization and some methods to figure out the CPU consumption.
Maybe the techniques mentioned here could be of help to you with the right modifications, might help to figure out what may be consuming the CPU in your use case.
Also, if you could share your code and let me know the steps to reproduce the issue; I could also try to look into it and figure out as to why the main() is slowing down.
Thank you so much for the links and offering to analyze my code. I am digging a bit further on how this is happening in the first place.