How to add code to context switch ?

Newbie Member
15Jul2010,23:32   #1
laro's Avatar
Hi

I write a program that simulate the task manager in windows.

for this task,

I Need to know how can I call to a function after a context switch ?
How can i add pointer function at the end of the context switch ?

I want to do it in Linux, and in Windows ?

(I think it has a relation with Hook, but not sure, and don't know how)..

Thank's
Go4Expert Member
8Sep2010,02:13   #2
LordN3mrod's Avatar
If you mean, does the operating system emit any event upon context switch which you can handle, then the answer is no, neither linux nor windows allow that. I don't know about other operating systems