How to add code to context switch ?

laro's Avatar, Join Date: Jul 2010
Newbie Member
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
LordN3mrod's Avatar, Join Date: Sep 2010
Go4Expert Member
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