<?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[How to create Thread on a Quad-core CPU?]]></title><description><![CDATA[<p dir="auto">Hi all,<br />
I'm a new by to Qt. Please help me to understand this problem:<br />
I have a hardware with Quad-core CPU and i use Qt to create an app for rendering image. When I click the button my app create a new windows then a new thread for rendering image. I click button 4 times and use htop to monitor CPU performance.  I saw that only 1 core load 100% while others core &lt;5%. I don't know why? It should be running parallel 4 threads on 4 cores and CPU on each core have to be the same value?</p>
]]></description><link>https://forum.qt.io/topic/60846/how-to-create-thread-on-a-quad-core-cpu</link><generator>RSS for Node</generator><lastBuildDate>Tue, 19 May 2026 21:30:05 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/60846.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 20 Nov 2015 07:25:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to create Thread on a Quad-core CPU? on Fri, 20 Nov 2015 09:40:45 GMT]]></title><description><![CDATA[<p dir="auto">I would suggest to add some debug output (using qDebug() &lt;&lt; "...";) to your code to see what really happens.<br />
I addition you could check whether your app really starts several threads (on Windows you can use "Process Explorer" from SysInternals suite.</p>
]]></description><link>https://forum.qt.io/post/298951</link><guid isPermaLink="true">https://forum.qt.io/post/298951</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Fri, 20 Nov 2015 09:40:45 GMT</pubDate></item><item><title><![CDATA[Reply to How to create Thread on a Quad-core CPU? on Fri, 20 Nov 2015 09:16:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jsulm">@<bdi>jsulm</bdi></a> I start thread in RenderThread constructor.</p>
]]></description><link>https://forum.qt.io/post/298948</link><guid isPermaLink="true">https://forum.qt.io/post/298948</guid><dc:creator><![CDATA[Thinh Nguyen]]></dc:creator><pubDate>Fri, 20 Nov 2015 09:16:14 GMT</pubDate></item><item><title><![CDATA[Reply to How to create Thread on a Quad-core CPU? on Fri, 20 Nov 2015 09:10:28 GMT]]></title><description><![CDATA[<p dir="auto">Where do you start the thread? Creating an instance is not enough.</p>
]]></description><link>https://forum.qt.io/post/298946</link><guid isPermaLink="true">https://forum.qt.io/post/298946</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Fri, 20 Nov 2015 09:10:28 GMT</pubDate></item><item><title><![CDATA[Reply to How to create Thread on a Quad-core CPU? on Fri, 20 Nov 2015 09:02:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jsulm">@<bdi>jsulm</bdi></a> is this correct?<br />
Window *window;<br />
window = new Window();<br />
window-&gt;show();<br />
in windows class constructor beside draw windows i alse call the thread:<br />
thread = new RenderThread(); (I declare thread in windows.h)<br />
in RenderThread Class contain run() function. So I think new thread will be created when i click the button.<br />
Here is my project: <a href="https://github.com/NguyenTrongThinh/Queuedcustomtype-.git" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/NguyenTrongThinh/Queuedcustomtype-.git</a></p>
]]></description><link>https://forum.qt.io/post/298945</link><guid isPermaLink="true">https://forum.qt.io/post/298945</guid><dc:creator><![CDATA[Thinh Nguyen]]></dc:creator><pubDate>Fri, 20 Nov 2015 09:02:20 GMT</pubDate></item><item><title><![CDATA[Reply to How to create Thread on a Quad-core CPU? on Fri, 20 Nov 2015 07:49:41 GMT]]></title><description><![CDATA[<p dir="auto">How do you create new thread if the button is clicked?<br />
A new windows in your app does not mean a new thread.</p>
]]></description><link>https://forum.qt.io/post/298932</link><guid isPermaLink="true">https://forum.qt.io/post/298932</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Fri, 20 Nov 2015 07:49:41 GMT</pubDate></item></channel></rss>