Quote Originally Posted by Codeplug View Post
>> yes that code has the same CPU usage.
How did you confirm that it is the Rcv_Msg() thread that is actually using the CPU? What are the other threads in the application doing?

>> The Vectors XL driver library for the old code worked well.
Same version of library? Same hardware setup? Using CAN functions? What are the differences between new and old?

gg
[QUOTE] How did you confirm that it is the Rcv_Msg() thread that is actually using the CPU? What are the other threads in the application doing?

I have used Procexp to see what all threads are running and how much CPU each thread is consuming.I have seen other threads are using around<1% of CPU.

Same version of library? Same hardware setup? Using CAN functions? What are the differences between new and old?
Yes they have used the same version of library and hardware setup.Few CAN functions differed.They have implemented the CANDll with in the code.But I have implemented the CANDll separately.