<?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>Thread scheduling</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/120935/thread-scheduling</link><description>I have a timer int callback like this: 
 
 void pwm_all_handler ( nrf_timer_event_t event_type , void * p_context ) 
 { 
 if ( event_type == NRF_TIMER_EVENT_COMPARE0) { 
 pwm_gpio_trigger ( TRIGGER_TYPE_ALL ); 
 k_event_post ( &amp;amp; camera_event , CAMERA_TS_EVENT</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 25 Apr 2025 02:25:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/120935/thread-scheduling" /><item><title>RE: Thread scheduling</title><link>https://devzone.nordicsemi.com/thread/532928?ContentTypeID=1</link><pubDate>Fri, 25 Apr 2025 02:25:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e90eb734-81ec-4ff3-bc73-495120ea1e0f</guid><dc:creator>hanks.liu</dc:creator><description>&lt;p&gt;Thanks,Hung.&lt;br /&gt;Due to confidentiality reasons, I am currently unable to provide test code and need to remove the confidential parts. But I can explain the new situation, which is that once the value of K_FOREVER is changed to K_USEC (100), this blocking problem will no longer occur&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread scheduling</title><link>https://devzone.nordicsemi.com/thread/532811?ContentTypeID=1</link><pubDate>Thu, 24 Apr 2025 11:47:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16e44138-d6ab-4f12-bc52-6beda3c63aa4</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Hank,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could&amp;nbsp; you please provide the full test code ?&amp;nbsp;&lt;br /&gt;Please be aware that hardware interrupt has higher priority than any thread regardless of the priority.&amp;nbsp;&lt;br /&gt;&lt;a href="https://docs.zephyrproject.org/latest/kernel/services/interrupts.html"&gt;https://docs.zephyrproject.org/latest/kernel/services/interrupts.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I would also suggest to use LED(s) toggling to monitor the thread execution it&amp;#39;s more reliable than using LOG.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread scheduling</title><link>https://devzone.nordicsemi.com/thread/532701?ContentTypeID=1</link><pubDate>Thu, 24 Apr 2025 03:37:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52db732c-bab7-42a0-a230-9fdb92d3d217</guid><dc:creator>hanks.liu</dc:creator><description>&lt;p&gt;And，If no log is added, the thread can only receive one event&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>