<?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>CPU release when waiting data through thread</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111534/cpu-release-when-waiting-data-through-thread</link><description>A simple and maybe trivial question. When in a thread I wait data for example with 
 
 
 is it like call continuously the k_yield()? How the api above works in the underhood?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 27 May 2024 12:19:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111534/cpu-release-when-waiting-data-through-thread" /><item><title>RE: CPU release when waiting data through thread</title><link>https://devzone.nordicsemi.com/thread/486018?ContentTypeID=1</link><pubDate>Mon, 27 May 2024 12:19:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:883fdfeb-eeaf-4fd2-a459-9bddbe2f3c0f</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;Yes, AFAIK the function will then suspend the calling thread.&lt;/p&gt;
&lt;p&gt;You can check what threads are running, and suspended, etc. with the Thread Viewer.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://nrfconnect.github.io/vscode-nrf-connect/guides/debug_thread_viewer.html"&gt;https://nrfconnect.github.io/vscode-nrf-connect/guides/debug_thread_viewer.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>