Home > database >  PB in the Do While statement checking excessive CPU how to solve?
PB in the Do While statement checking excessive CPU how to solve?

Time:10-06

With the Do While statement checking computer serial port when CPU is too high, is there a way to ace teaching to reduce the CPU?

CodePudding user response:

yield

CodePudding user response:

I have added a lot of yield (), but how the effect is not obvious; But I had a back analysis, found that may be I call the problem of a DLL,
Masters, there are other good advice is most welcome,
I will have a good problem solving after debugged, knot

CodePudding user response:

DLL problem unless rewritten DLL
Has nothing to do with pb, with pb can't solve

CodePudding user response:

Check the computer string buckle also need not long time ah, can't read data when you quit, read again immediately

CodePudding user response:

"Check the computer string buckle also need not long time ah, can't read data when you quit, immediately read"
Exit immediately read again? Can you point to introduce in detail?
  • Related