Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   How to add code to context switch ? (http://www.go4expert.com/forums/add-code-context-switch-t22729/)

laro 15Jul2010 23:32

How to add code to context switch ?
 
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 8Sep2010 02:13

Re: How to add code to context switch ?
 
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


All times are GMT +5.5. The time now is 11:37.