Qt MultiThreading for BF548

Hi,

   I have wrote a qt program running with multithreading on uClinux. I run only one extra thread other than the main one. But the pushbutton really lags and sometimes stop responding. Please tell me if BF548 process suits for multithreaded programs? Or its just the coding problem? Note that I can run the same code on PC smoothly..

Parents
  • I've two thoughts about this issue:

    1) are you able to identify where the cause of the lag is, could it about the CPU performance? for example, when running on PC, run top to check how much the CPU time it consumes, and what's the CPU modle and total CPU capability on the PC?

    2)Usually the man machine interaction thread should be of the high priority, have you tried lowering the priority of the slave thread for data processing?

Reply
  • I've two thoughts about this issue:

    1) are you able to identify where the cause of the lag is, could it about the CPU performance? for example, when running on PC, run top to check how much the CPU time it consumes, and what's the CPU modle and total CPU capability on the PC?

    2)Usually the man machine interaction thread should be of the high priority, have you tried lowering the priority of the slave thread for data processing?

Children
No Data