in reply to Re^2: Libxml parser cosuming 100% cpu
in thread Libxml parser cosuming 100% cpu

You bring up 100% CPU as if it's a bad thing again, but 100% CPU is a good thing. It means no time is being wasted waiting for I/O.

Think of it this way: Would you rather have an employee that works at 100% of the time they are at work, or 50%?

Replies are listed 'Best First'.
Re^4: Libxml parser cosuming 100% cpu
by geek2882 (Initiate) on Aug 11, 2018 at 13:08 UTC
    Actually there are other task which are getting slower or terminate because of not available of cpu. do you think this is right to be 100% cpu usagre now ?

      I was judging by the criteria that you provided: You wanted the make your program faster. Are you now saying you want to slow down your program to give other programs more CPU time? If so, use nice as previously mentioned.

        I want to know the reason why cpu usage is 100%. how to make a execution more fast without consuming 100% cpu. or maybe i have doing something wrong that can i avoided have you u seen my sudo code ?