> I would like to know which is the fastest and best IPC mechanism in
Fastest? That would be shared memory. Best? That depends entirely
on your application. Tell us something about what tasks will be
Quote:> My linux application would go into an Embedded Device.
"Embedded Device" is a bit vague. It's also mostly irrelevant to a
discussion of how to implement IPC for some application.
Quote:> How to chose b/w Kerenel Mode and User Mode implementation. Eg. I am
> trying to implement a Registration Service. Based on what paramaters
> should I decide whether it should be implemented as User Space
> Process OR System Call
Well, what are you registering with your service, and how frequently?
It's rather unlikely that you should implement this (or any) part of
your application in the kernel. Few applications require it, and few
experienced implementors would want to.
I suggest coming up with a basic plan for implementing your thing in
userspace, and only if you can then definitively state why some part
of it must be in the kernel* should you consider moving code into
* Typical reasons include "standard syscall interface for Foo has
performance issue", "this is a high-volume networking protocol",
"this is a device driver for a device with interrupts", etc. Even
these cases can be handled with only a smidge of kernel work to
better support userspace code.
Grant Taylor - gtaylor<at>picante.com - http://www.picante.com/~gtaylor/
Linux Printing Website and HOWTO: http://www.linuxprinting.org/
News, Discussion Forums, Support Database, Software, and more...