|
-
Aug 4th, 2001, 01:35 AM
#8
Monday Morning Lunatic
It does affect the OS, but what it does is...when it transfers execution to another thread (the scheduling) it saves the state of the processor, swaps in the next thread's info, runs the thread, pauses it again, saves the latest, swaps back another thread's info, and runs...
And so on Maybe that's not quite what it does but you see what I mean 
Check out setjmp and longjmp for info on things like this...however...DON'T use them in C++ programs because they mess up constructor/destructor calls because they're very low level.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|