Adam Maras
  • Member for 7 years, 7 months
  • Last seen more than 4 years ago
How does the processor find kernel code after an interrupt?
Accepted answer
13 votes

On startup, the kernel will initialize an interrupt vector table (called an interrupt descriptor table or IDT on x86) that points to an interrupt handler for each line. Before the 80286, the IDT was ...

View answer
How are userland programs executed?
Accepted answer
12 votes

Obviously, with the various forms of operating systems out there, this process can vary (and in some cases, be completely different) but this outlines a general overview. Step 1: Load the program ...

View answer
Performance of microkernel vs monolithic kernel
Accepted answer
11 votes

As is always the answer (or at least the preface) to performance-related questions: know your problem domain, run comparative benchmarks, and remember what premature optimization is. First, no ...

View answer
Handling TOCTTOU with system calls
Accepted answer
1 votes

One of the simplest ways to avoid TOCTTOU issues is for your system calls to perform the check at time of use (within the system call) instead of trusting a prior check. If you can gracefully fail a ...

View answer