简体   繁体   中英

IPC with Message Passing

I'm looking for suggestions on possible IPC mechanisms that I can implement in my self-made OS for an AVR32 board.

My current choice is implementing the massage passing mechanism described in the books written by Tanenbaum.

Is this a good choice? Are there easier way to implement IPC?

Thanks

My suggestion is to review the message passing primitives that QNX RTOS (www.qnx.com) supports before making any decisions. I spent several years programming a complex multi-process system in that environment, and it stands out as the best message-based O/SI have ever encountered.

Some specific points that spring to mind (it's been a while now):

  1. Message data copied between process memory space by the kernel so that a bug in one process cannot affect another.
  2. Ability to send and block for a reply.
  3. Ability to drop a message on a queue and move on immediately.
  4. Ability to send a message an block indefinitely until the receiver responds; the receiver may receive and process other messages in the meantime - this is way more valuable than you at first think it will be.

也许ZeroMQ项目可以替代你?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM