Page 1 of 1
Microkernel IPC [Mailbox/Sections]
Posted: Fri Oct 02, 2009 10:53 pm
by princetkmk
This is just a n00b question but could there be a space in each part of a microkernel that could be activated (such as a bit that can be changed from 1 to 0 and vice versa) with all sections checking that 'mailbox' every few seconds or so?
Re: mailbox section in a microkernel
Posted: Fri Oct 02, 2009 11:10 pm
by ucosty
It's only a noob question because it's a badly worded question. I think you need to look into shared memory IPC. The wiki has information on this.
Re: mailbox section in a microkernel
Posted: Fri Oct 02, 2009 11:16 pm
by princetkmk
Perhaps my wording is vague. What I'm trying to say is if there was a specific chunk of memory dedicated to a section of a microkernel that can be changed by other sections. Sort of like an interrupt handler or message port dedicated to a section or program.
Re: mailbox section in a microkernel
Posted: Sat Oct 03, 2009 5:51 am
by neon
What is a "section"? If its a part of the kernel, then "yes, of course you can do that". If its not (between processes), it cannot be done without memory sharing.
Re: Microkernel IPC [Mailbox/Sections]
Posted: Sat Oct 03, 2009 5:54 am
by gravaera
Hi: This is of course, definitely possible.
But it seems like you're not getting the basic ideas down properly here: Memory is nothing more than a set of addressable bytes on a RAM chip. Asking a question such as "Is it possible to set bits in a bitmap/shared memory area for interprocess signalling?" is indicative of a lack of a flexible mind.
Each byte has no innate interpretation. What you do with the bytes in RAM is entirely your own prerogative. So, yes: setting apart bytes in memory, or whole pages, or however you see fit, and manipulating them at the bit level is, of course, doable.
You need to abstract the bytes in memory to fit your design: memory doesn't impose any particulat methods on you for implementing concepts in your OS.
-Good luck
gravaera