CPC Timer Handler - linux thread performance [message #1768916] |
Mon, 24 July 2017 21:00  |
Eclipse User |
|
|
|
Hello,
I am currently doing some performance analysis on a Forte implementation in an embedded environment and have found that the CPCTimerHandler thread seems to be a performance hog even when no forte resources are currently running. Is this an expected behaviour? It is my understanding that the thread is used to notify timer function blocks which should not be required when no resources are running.
Has anyone had similar findings? I have done a bit of hacking around with the enable/disableHandler functions in an attempt to mitigate unnecessary cpu usage by this timer thread with some success but am concerned these changes may effect other interactions that I am not familiar with.
Specifically, enabling the TimerHandler from the CEventchainExecutionThread constructor if a resource will be loaded and and disabling the timer from the createDev function in posix/main.cpp.
Any input on problems with my understanding or consequences with the suggested workaround are greatly appreciated. Has anyone had luck improving the efficiency of the posix CPCTimerHandler::run function?
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05855 seconds