Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 5

Qt-interest Archive, October 2007
Qt Jambi


Message 1 in thread

Hi all. I?m going to realize a multithreaded application in Java. Knowing
that Qt are very useful and having realized a previous app that should
become usefull, written in c++ using qt, I would ask if QCoreApplication
thread should conflict with other threads launched inside the app?

I?m not very experienced so I ask?

 

Thank you very much.

 

Best regards,

Marco


Message 2 in thread

Marco Bnà wrote:
> Hi all. I’m going to realize a multithreaded application in Java. Knowing
> that Qt are very useful and having realized a previous app that should
> become usefull, written in c++ using qt, I would ask if QCoreApplication
> thread should conflict with other threads launched inside the app?
>   

Hi, Marco.

It is quite possible to write a multithreaded application using Qt Jambi 
using the existing threading API available in Java.

Whenever threads are involved, there is the possibility of conflicts, 
which means that you will have to take care when you are programming the 
application. This is true for Qt Jambi applications as well. There are, 
however, some helpful features in Qt and Qt Jambi which might make it 
easier: Objects of class QObject have thread affinity, meaning they can 
only be used from the thread they belong to. There is also thread safety 
built into the signal/slot mechanism, which means you can easily 
communicate between application components without worrying about thread 
issues.

I hope this was helpful, please get back to me if I misunderstood your 
question.

Also, could I ask you to direct future questions to the Qt Jambi 
Interest mailing list (qt-jambi-interest@xxxxxxxxxxxxx)? That is the 
list dedicated to questions about Qt Jambi, and you're more likely to 
get a useful response there (as Qt Jambi developers as well as other Qt 
Jambi users regularly monitor that list.)

-- Eskil

--
 [ signature omitted ]