Page 1 of 1
messaging techniques
Posted: Sat Jan 17, 2004 3:29 am
by shahzad
i just wana ask how you implement messaging in your OS.how you communicate within processes in kernel .what technique you use for interprocess communication in user mode.
Is it ok to use global variables for signalling in kernel.
Re:messaging techniques
Posted: Sat Jan 17, 2004 4:39 am
by distantvoices
I use store and forward message routing in my kernel - well the kernel in itself is the message router. some features don't work yet - like being abl to say: I want a message from process X and from no one else - Have to debug it.
Well - my approach includes lots of allocating and freeing memory in small pieces - therefore I've written two extra functions for it: msg_alloc and msg_dealloc, which serve my needs very well for they manage a dedicated heap - and the messages are attached to the receiving process' message queue and remain there til it fetches them.
HtH