Re: Determining on which processor (or core) a given thread is currently running

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Yes, threads can execute on any available core or CPU at any given time and
this doesn't mean that thread will always execute on the same core or CPU. I
am trying to proof IOCP's efficient multi-core usage to my manager.

"m" <m@xxx> wrote in message news:e79KxI9MJHA.5228@xxxxxxxxxxxxxxxxxxxxxxx
Why? This information can change as soon as DURING the test so unless you
have a NUMA system, the value is meaningless.


"Kürþat" <kursattheking@xxxxxxxxx> wrote in message
news:u$sjoQ1MJHA.4380@xxxxxxxxxxxxxxxxxxxxxxx
Hi,

I want to get an identifier (id, number, etc.) about the processor or
core which executes currently running thread. The OS is WindowsXP+SP3, so
both GetCurrentProcessorNumber () and NtGetCurrentProcessorNumber ()
functions aren't available. Is there any function or technique available
for WindowsXP to get the job done?

Thanks in advance.





.



Relevant Pages

  • Re: If you got to choose the syntax, what would you do?
    ... Except that CORE used the network address register in the on-chip ... When you write an opcode to a port it will either be executed directly ... it is going to execute or be treated as data. ...
    (comp.lang.forth)
  • Re: Scheme Virtual Machine
    ... Minimal c/c++ made core for the executable file everything else in the ... Needs to interpret  CPS transformed code. ... The VM should execute already CPS ... Transformed (if primitives are setq, begin, * and lambda, let) and ...
    (comp.lang.scheme)
  • Re: Scheme Virtual Machine
    ... Minimal c/c++ made core for the executable file everything else in the ... Needs to interpret  CPS transformed code. ... The VM should execute already CPS ...
    (comp.lang.scheme)
  • Re: Core files issues
    ... In order to analyze core produced by dynamically-linked executable, ... and all the shared libraries that were mapped into it. ... It is probably easiest to just ask remote user to execute a given ...
    (comp.unix.aix)
  • Re: Can extra processing threads help in this case?
    ... the single core done by the hardware, usualy handled opportunistically by the underlying ... the multiple CPU threads which are executing. ... Differs from hyperthreading in that each CPU is ... Intel came out with before they came out with multiple ...
    (microsoft.public.vc.mfc)