[Qt-interest] Linux Interprocess communication for GUI to connect to a service ?
Ed Sutton
ESutton at fescorp.com
Mon Jan 3 16:55:03 CET 2011
Hi Oliver,
Thank you for your reply.
On Dec 22, 2010, at 10:12 AM, <Oliver.Knoll at comit.ch> <Oliver.Knoll at comit.ch> wrote:
> On 2010-12-22 Ed Ed Sutton wrote:
>
>> Is QtDBus the best choice?
>> ...
>> Any feedback on experience with Linux interprocess communications and
>> especially performance aspects are appreciated.
>
> >I don't know much about performance of QtDBus, but another possibility would certainly be to use http://doc.qt.nokia.com/4.7/qsharedmemory.html. If you frequently need to update data (in constant intervals) it might be cheaper to "poll" for new data. And "polling" in shared memory for new data is probably the cheapest and most performant way - with the restriction off course that both processes run on the same machine. But I think the same restriction (still) applies to DBus as well, no?
Thank you for your suggestions. I should give shared memory a closer look. I agree that sounds like a simpler and faster method to connect the GUI to the service that is monitoring data as compared to QtDBus. It might make it easier to connect the service to a web server if I decide to do so.
Thanks again!
-Ed
More information about the Qt-interest-old
mailing list