Wednesday, June 20, 2012

What to optimize in OS #1?

Hi all again,
today I will make some notes about optimization that might be made in OS generally and in microkernel based one as well.
Avoid copy_from/copy_to
It's a bad idea to transfer big data via kernel buffers, it's better to find a way to avoid it.
Avoid double/triple buffering
It's mostly the same as written top.
Avoid priority/time slice consuming
When you receiving a message from task you will execute procedure with your own time slice and priority - it's very sadly. To avoid this receiving thread should cut time slice from the caller's thread and set priority of it.
Well, later I will try to explain and show implementation of this great features.

No comments: