Re: [rvm-research] Tracing Multi-threaded programms
David P Grove <[email protected]>
| Newsgroups | gmane.comp.java.jikes.rvm.devel |
|---|---|
| Message-ID | <OFAE932DD4.F000FB9E-ON85257D03.006C54DF-85257D03.006D70AA@us.ibm.com> |
Nisha nisha <[email protected]> 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. Hi, 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. --dave ------------------------------------------------------------------------------ Open source business process management suite built on Java and Eclipse Turn processes into business applications with Bonita BPM Community Edition Quickly connect people, data, and systems into organized workflows Winner of BOSSIE, CODIE, OW2 and Gartner awards http://p.sf.net/sfu/Bonitasoft _______________________________________________ Jikesrvm-researchers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers