messaging techniques

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
shahzad

messaging techniques

Post 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.
distantvoices
Member
Member
Posts: 1600
Joined: Wed Oct 18, 2006 11:59 am
Location: Vienna/Austria
Contact:

Re:messaging techniques

Post 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
... the osdever formerly known as beyond infinity ...
BlueillusionOS iso image
Post Reply