Thursday, February 20, 2014

Memory Management (Day 10)

I expect that you have written your own printf function which is way better than printf I wrote in my previous post. Also write a scanf function if you get time. Writing a scanf function is not going to be tough. First step would be to find the interrupt which is there for keyboard. Then use this interrupt to get keyboard input. Once you have the keyboard input, use the your printf function to print the data on screen.

Have a look at standard C implementation of printf and scanf for writing a good printf and scanf function of your own.

Today we will move on to next important topic of operating system development which is memory management. I have shared a link to a book which I found very interesting. I hope you should read it too. It's the first (1) link. It is about memory management.

Following are the few questions that you need to answer so that you can write your own memory manager.

Why is memory management required? 

Following question will be explained in detail in my next few posts...

How can we detect the memory?
Here GRUB will come to our rescue.

What part of the memory is usable?
Not all the memory you have is usable. We need to find out the part which is usable.

How should we manage memory?
In this I will explain paging and segmentation which are very important concepts in operating system management.

No comments:

Post a Comment