Skip to content

Comment on How to Write an Operating System

Comments

I implemented my own timesharing kernel in C and little inline x86 assembler.

Main ideas:

1. Write context switch routine, which will require a little inline x86 assembler code.

2. Map it to timer interrupt.

3. Use C setjmp and longjmp to switch context.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.