[Qt-interest] QThread Problem
Yuvraj
yuvraj.ragupathi at indieontech.com
Mon Feb 15 05:23:28 CET 2010
alexander golks wrote:
> just call
> thread->start();
> what will result in execution of run() and in your case the display() method.
>
> your second call to
> thread->run();
> starts the display() method again.
> thus both threads will show "Sub thread is running" until end of universe...
>
>
> alex
>
> btw: you should mail text, not html content to this list
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
If i use *scanf* or *cin* functions inside of threads only one thread
is executing
if i use *cin* function in main thread , main thread only executing. if
i use *cin* function in sub thread , sub thread only executing
I want to use cin or scanf function in side threads
Thanks
Yuvraj
More information about the Qt-interest-old
mailing list