<?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>NRF SDK Scheduler vs. Task Manager</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63209/nrf-sdk-scheduler-vs-task-manager</link><description>Hello, 
 I am trying to setup my project&amp;#39;s architecture and I am trying to take advantage of some of the awesome libraries in the SDK. I am a bit confused on the differences between the Task Manager and the Scheduler and what each is best suited for.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 01 Jul 2020 13:24:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63209/nrf-sdk-scheduler-vs-task-manager" /><item><title>RE: NRF SDK Scheduler vs. Task Manager</title><link>https://devzone.nordicsemi.com/thread/257857?ContentTypeID=1</link><pubDate>Wed, 01 Jul 2020 13:24:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b61a996-6d12-4a9f-b3ba-16fbf92542ca</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;1. I assume you&amp;#39;re referring to the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/lib_task_manager.html"&gt;Experimental: Task manager&lt;/a&gt;, and the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/lib_scheduler.html"&gt;Schedule handling library&lt;/a&gt;? As of writing this, I can&amp;#39;t think of a use case where you would benefit from using both of these, as I think one or the other should be more than sufficient.&lt;/p&gt;
&lt;p&gt;2. First off, the Task manager is still an experimental library, which indicates that it is not properly tested from our side, and may not have the same quality as you can expect from the other SDK modules. So for a thoroughly tested module, I would suggest going for the Scheduler over the Task Manager.&amp;nbsp;However, if you&amp;#39;d like the more advanced features like the dynamic task creation, synchronization options, etc. you should go with the Task Manager.&lt;/p&gt;
&lt;p&gt;3. The idle task ensures that you won&amp;#39;t have to leave the task context in order to run these functions, and would be the equivalent to the main loop inside the task context.&lt;/p&gt;
&lt;p&gt;4. Please check out the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/ble_sdk_app_cli.html"&gt;Console over Bluetooth Application&lt;/a&gt; which is the only example we have that runs the task manager. Here you can see how it is used to start the task manager after all initialization is done, and&amp;nbsp;run the application from there.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please note that we&amp;#39;re entering the summer vacation period here in Norway, so delays must be expected as we are low on staff for the month of July. Sorry about the inconvenience!&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>