Can someone please point out some books or online resources which explain in detail and at an advanced level the task management features of x86? I'm specifically interested in understanding the relationship between x86 hardware and the OS (POSIX style) when an interrupt or context switch occurs. Intel manuals are very confusing and I can't seem to get much out of them.
Thanks, -Dhruv
Edited to add your actual answer:
Protected Mode Software Architecture
Tom Shanley
Addison-Wesley Professional (March 16, 1996)
ISBN-10: 020155447X
ISBN-13: 978-0201554472
googlebook, amazon
My answer
Have you looked at "Understanding the Linux Kernel," 3rd Edition? It's available via Safari, and it's probably a good place to start for the OS side of things -- I don't think it gives you nitty- gritty details, but it's an excellent guide that would probably put the linux kernel source and architecture-specific stuff into context. The following chapters give you the narrative you're asking for from the kernel side ("relationship between the hardware and the OS when an interrupt or context-switch occurs"):
Understanding the Linux Kernel, 3rd Ed.
Daniel P. Bovet; Marco Cesati
Publisher: O'Reilly Media, Inc.
Pub. Date: November 17, 2005
Print ISBN-13: 978-0-596-00565-8
Print ISBN-10: 0-596-00565-2
Safari, Amazon
My recommendation is a book like this, with the linux source code and the intel manuals and a full fridge of beer, and you'll be off and running.
A brief snippet from Chapter 3: Processes, to whet your appetite:
Another potential reference in the same vein is this one, which does have a lot more x86-specific stuff, and you might benefit a bit from the contrast w/ PowerPC. Linux® Kernel Primer, The: A Top-Down Approach for x86 and PowerPC Architectures
Claudia Salzberg Rodriguez; Gordon Fischer; Steven Smolski
Publisher: Prentice Hall
Pub. Date: September 19, 2005
Print ISBN-10: 0-13-118163-7
Print ISBN-13: 978-0-13-118163-2
Safari, Amazon
Finally, Robert Love's Linux Kernel Development, 3rd Edition, has a pretty thorough description of context switching, though it may be redundant with the above. It's a pretty fantastic resource.