c - When daemon will hog cpu? -
c - When daemon will hog cpu? -
what possible status might occur daemon pig cpu , makes scheme slow or moved non-responsive state?
daemons have few threads well.
a tiny fraction of reasons include:
infinite loops in general low memory in general race conditions dead locks starvation spawning many threads forking much super low process priority infinite recursion algorithms of bad algorithmic complexity really slow operations on numbers something repeated (e.g. variable improve calculated outside loop compiler unable move out) cache-unfriendliness using sleep-like functions invoking slow functions running daemon on slow machine your beingness dos-attacked your machine running out of electricity , tries slow down your cpu has bug your cpu has hardware defect your cpu running @ low voltagethese list items not exclusive each other. can't tell more specific without more information.
c linux debugging daemon daemons
Comments
Post a Comment