<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[run two thread or two code line in same time]]></title><description><![CDATA[<p dir="auto">Hi I have create two thread classes :</p>
<pre><code> 1-qprocessThread 
 2-qprocessThreadTwo
</code></pre>
<p dir="auto">Then in main class I have create two object from above thread classes like below :</p>
<pre><code>    qprocessThread mythread;
    qprocessThreadTwo mythreadtwo;
</code></pre>
<p dir="auto">My question is that, how can run two code line below in the same time or synchronize ?</p>
<pre><code>mythread.initialize(File);
mythreadtwo.initialize(File);
</code></pre>
<p dir="auto">I want to both of lines, run or start in the same time. How can I do this???</p>
]]></description><link>https://forum.qt.io/topic/87037/run-two-thread-or-two-code-line-in-same-time</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 14:14:04 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/87037.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 21 Jan 2018 10:12:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to run two thread or two code line in same time on Mon, 22 Jan 2018 05:47:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alexanov">@<bdi>Alexanov</bdi></a> You should learn how multi-threading works: <a href="http://doc.qt.io/qt-5/thread-basics.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://doc.qt.io/qt-5/thread-basics.html</a><br />
<a href="https://mayaposch.wordpress.com/2011/11/01/how-to-really-truly-use-qthreads-the-full-explanation/" target="_blank" rel="noopener noreferrer nofollow ugc">https://mayaposch.wordpress.com/2011/11/01/how-to-really-truly-use-qthreads-the-full-explanation/</a></p>
]]></description><link>https://forum.qt.io/post/437868</link><guid isPermaLink="true">https://forum.qt.io/post/437868</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Mon, 22 Jan 2018 05:47:39 GMT</pubDate></item><item><title><![CDATA[Reply to run two thread or two code line in same time on Sun, 21 Jan 2018 17:11:29 GMT]]></title><description><![CDATA[<p dir="auto">You need to call start() method of both the thread object. There is nothing like both at same time. start() call has to be one after the other from calling/main thread.</p>
]]></description><link>https://forum.qt.io/post/437824</link><guid isPermaLink="true">https://forum.qt.io/post/437824</guid><dc:creator><![CDATA[dheerendra]]></dc:creator><pubDate>Sun, 21 Jan 2018 17:11:29 GMT</pubDate></item></channel></rss>