Skip navigation.
Home
The QNX Community Portal

View topic - Real time log updation to GUI

Real time log updation to GUI

Discussion about the general applications that run on QNX6

Real time log updation to GUI

Postby hello » Mon Apr 22, 2013 1:32 pm

Hi all,

I have an application which need to update heavy logs to GUI in real time. By heavy logs, it means say 1000 logs in a milliseconds. I have assigned a dedicated thread for doing this log updating. But it affects the performance of other threads.

Is real time GUI updating efficient with photon GUI ?

Note :- Used PtMultiTextModifyText() to updating the logs to GUI. Proper usage is PtEnter(), PtLeave() is also ensured.

Regards,
hello
hello
Senior Member
 
Posts: 101
Joined: Tue May 08, 2012 1:09 pm

Re: Real time log updation to GUI

Postby mario » Mon Apr 22, 2013 4:47 pm

hello wrote:Hi all,

I have an application which need to update heavy logs to GUI in real time. By heavy logs, it means say 1000 logs in a milliseconds. I have assigned a dedicated thread for doing this log updating. But it affects the performance of other threads.

Is real time GUI updating efficient with photon GUI ?


Efficient ? Not sure how to answer that question, how do you define efficient. First, if are talking about a gui, updating the content more the 100 times a second is a total waste of resource. It's pointeless to update the GUI for every log, if you receive 1000 log in a millisecondes over 1 second that's 1 million log, even in a non gui environment a text console would not keep up... I would do the log thing with two threads, one that receives and store the data in memory, the other thread updates the GUI says 20-40 times a seconds. By running the GUI thread at low priority it shouldn't affect the other thread.

hello wrote:Note :- Used PtMultiTextModifyText() to updating the logs to GUI. Proper usage is PtEnter(), PtLeave() is also ensured.

Regards,
hello
mario
QNX Master
 
Posts: 4132
Joined: Sun Sep 01, 2002 1:04 am


Return to QNX6 - Applications

Who is online

Users browsing this forum: No registered users and 2 guests