- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In a hyper-threading processor, are there any ways to get the content of another logic CPU's register at runtime? For example, in a hyper-threading processor, is there any ways that the foreground thread can obtain the register content of background thread?
Thanks!
Thanks!
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - eric_lee
In a hyper-threading processor, are there any ways to get the content of another logic CPU's register at runtime? For example, in a hyper-threading processor, is there any ways that the foreground thread can obtain the register content of background thread?
Thanks!
Thanks!
Not really. The processors are logically distinct but they are distinct none the less. There is no foreground or background thread--they are truly peers that share physical hardware with sufficient status to preserve theirlogical separation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - eric_lee
In a hyper-threading processor, are there any ways to get the content of another logic CPU's register at runtime? For example, in a hyper-threading processor, is there any ways that the foreground thread can obtain the register content of background thread?
Thanks!
Thanks!
On Windows you can always suspend thread with SuspendThread(), and then receive thread context with GetThreadContext(). From obtained CONTEXT structure you can get contents of any register. However I'm not sure whether it's what you are looking for or not.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page