我想要监控多线程pthread应用程序中的上下文切换行为。在其他RTOSes(Micro C OS)中,我已经能够为应用程序中的每个线程注册一个上下文切换回调,然后记录(或切换gpio)并实时观察线程上下文切换。对于调试多线程的实时行为和交互,这是一个有价值的工具。
我当前的环境是使用pthread api的嵌入式linux。有没有一种方法可以监控每个上下文切换?
\2ca66a48-91ab-4885-93cf-c9d6c325f3b2\shared: The process cannot access the
file 'C:\DesktopAppConverter\2ca66a48-91ab-4885-93cf-c9d6c325f3b2\shared' because it is being used by another process.\DesktopAppConverter\2ca66a48-91ab-4885-93cf-c<