<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Only getting log messages from one of my threads at a time early in runtime</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/106193/only-getting-log-messages-from-one-of-my-threads-at-a-time-early-in-runtime</link><description>I am working on a project based on an AWS Sidewalk example application. I have been adding additional threads to support new features, while maintaining the existing threads used by the Sensor Monitoring example app. 
 Previously, I have added a new thread</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 30 Nov 2023 13:44:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/106193/only-getting-log-messages-from-one-of-my-threads-at-a-time-early-in-runtime" /><item><title>RE: Only getting log messages from one of my threads at a time early in runtime</title><link>https://devzone.nordicsemi.com/thread/458314?ContentTypeID=1</link><pubDate>Thu, 30 Nov 2023 13:44:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3de4ccbe-eef5-44c7-862b-6c287bc71c79</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello Chris,&lt;/p&gt;
&lt;p&gt;If the threads are of the same priority I sort of agree with you in that it should be as easy as yielding to the other one. Though I would recommend having a look at &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/lessons/lesson-7-multithreaded-applications/topic/exercise-1-7/"&gt;our course on threads&lt;/a&gt; if you haven&amp;#39;t already, in case there is anything you&amp;#39;ve overlooked there or missing.&lt;/p&gt;
&lt;p&gt;Another thing, is that you are only showing the task start function, but I hope you are also defining these new threads in right way.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In order to get a better understanding over what thread is currently running etc., you can also have a look at our &lt;a href="https://nrfconnect.github.io/vscode-nrf-connect/reference/ui_panel.html?h=thread#thread-viewer"&gt;Thread Viewer in the VSC extension&lt;/a&gt;. Have look here for a &lt;a href="https://youtu.be/IDC2m91xMb0?si=RunhhR3vPhDBgRNL&amp;amp;t=238"&gt;rundown on how to use it&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>