Nisha nisha <> wrote on 06/26/2014 12:43:31 AM:
> Hello,
> I want to trace the execution of multi-threaded programs, I need the
> thread id which is currently being executed. In which files of RVM
> should I modify, so that whenever there is context switching
> corresponding thread id  gets printed.


Jikes RVM switched from m:n threading ("green threading") to directly using native threads several years back, so there is no longer a place in the RVM you can instrument to capture the currently executing thread id or context switching activity.   You can instrument RVM to determine which threads are runnable at the Java level, but that won't tell you what threads are actually running on the CPU at a particular time, since the real scheduling decisions are being made by the OS, not RVM.