Quantcast
Channel: Active questions tagged kernel - Stack Overflow
Viewing all articles
Browse latest Browse all 6334

Where is a thread's context saved and can it be accessed programmatically (without modifying the kernel)?

$
0
0

Windows Context Switching

The scheduler maintains a queue of executable threads for eachpriority level. These are known as ready threads. When a processorbecomes available, the system performs a context switch. The steps ina context switch are:

  • Save the context of the thread that just finished executing.
  • Place the thread that just finished executing at the end of the queue for its priority.
  • Find the highest priority queue that contains ready threads.
  • Remove the thread at the head of the queue, load its context, and execute it.

I don't know much about the topic yet, so I don't know how to elaborate on my question. Where is a thread's context saved, and can it be accessed (edit: read) programmatically (without modifying the kernel)?


Viewing all articles
Browse latest Browse all 6334

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>