[Qt-interest] Demo Browser and Qt::Concurrent query
Nitin Mahajan
nitinm76 at yahoo.com
Wed Jan 20 09:48:54 CET 2010
Hello,
--- On Wed, 20/1/10, Thiago Macieira <thiago at kde.org> wrote:
> From: Thiago Macieira <thiago at kde.org>
> Subject: Re: [Qt-interest] Demo Browser and Qt::Concurrent query
> To: nitinm76 at yahoo.com
> Cc: qt-interest at trolltech.com
> Date: Wednesday, 20 January, 2010, 1:25 PM
> Em Quarta-feira 20 Janeiro 2010, às
> 08:17:45, Nitin Mahajan escreveu:
> > > You're using a QNetworkReply object from a thread
> that it
> > > doesn't belong to
> > > (that's not allowed) and you're doing GUI
> operations from a
> > > thread, which is
> > > also not allowed.
> > >
> > > You can open a file and write to it in a thread.
> But you
> > > may not do GUI and you
> > > may not read from the QNetworkReply in it.
> >
> > Thanks for the inputs. Suppose I decide to do only the
> file write(No
> > reading from QNetworkReply or No GUI ops) operation in
> a separate thread,
> > in this particular case, Whether spawning of threads
> very frequently would
> > also result into overhead and inturn GUI drawing in
> main thread becomes
> > slow?
>
> Yes, the spawning of threads can be a slow / costly
> operation. It depends on
> what operating system you're running, though.
>
> QtConcurrent uses QThreadPool, which means it will reuse
> existing threads and
> avoid spawning new.
>
> In any case, what kind of network connection will you be on
> that you can
> download fast enough for disk I/O to be a bottleneck?
So you are hinting that the disk I/O is not the bottle neck, unless the network connection is fast enough.
My main intention is to resolve the jumpy mouse movements during even a single download. Can you give me some pointers to this in the context of demo browser?
Whether the shifting the entire, Network operation involving QNetworkAccessManager and QNetworkReply to be shifted to a new thread for every file? (I understand no GUI operations and no using objects created in other threads)
regards
-Nitin
>
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT)
> kde.org
> Senior Product Manager - Nokia, Qt Development
> Frameworks
> PGP/GPG: 0x6EF45358; fingerprint:
> E067 918B B660 DBD1 105C 966C
> 33F5 F005 6EF4 5358
>
New Email names for you!
Get the Email name you've always wanted on the new @ymail and @rocketmail.
Hurry before someone else does!
http://mail.promotions.yahoo.com/newdomains/aa/
More information about the Qt-interest-old
mailing list