# Scheduler source code

**URL:** <https://www.ruby-forum.com/t/scheduler-source-code/230167>\
**Category:** GNU Radio\
**Created:** [June 3, 2014, 7:31am UTC](https://www.ruby-forum.com/t/scheduler-source-code/230167 "2014-06-03T07:31:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jason\_sam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7993a0/32.png) [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Post date:** [June 3, 2014, 7:31am UTC](https://www.ruby-forum.com/t/scheduler-source-code/230167/1 "2014-06-03T07:31:13Z")

</div>

Dear Sirs,

To grasp a better understanding of how the scheduler works, I try to  
look  
into its source code.  
The files like scheduler.cc and scheduler.h don’t contain much code.  
The single\_threaded\_scheduler.cc contains part of the codes, I am  
looking  
for files like this.

Could you suggest to me which files I shall go through in sequence?  
I know this is not easy. This is my first attempt to do so, a lot more  
effort will be needed.  
Thank you very much.

Activecat

---

<div class="post-metadata">

**Author:** ![activecat\_k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c57346/32.png) [@activecat\_k](https://www.ruby-forum.com/u/activecat_k)\
**Post date:** [June 3, 2014, 7:48am UTC](https://www.ruby-forum.com/t/scheduler-source-code/230167/2 "2014-06-03T07:48:53Z")

</div>

On Mon, Jun 2, 2014 at 10:29 PM, Activecat [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Could you suggest to me which files I shall go through in sequence?

Activecat,

You can start with Tom’s presentation about the scheduler located on his  
blog  
[Explaining the GNU Radio Scheduler — Rondeau Research](http://www.trondeau.com/blog/2013/9/15/explaining-the-gnu-radio-scheduler.html).  
The slides mention how the scheduler works and reference a couple of the  
important files you should go through.

---

<div class="post-metadata">

**Author:** ![activecat\_k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c57346/32.png) [@activecat\_k](https://www.ruby-forum.com/u/activecat_k)\
**Post date:** [June 3, 2014, 8:49am UTC](https://www.ruby-forum.com/t/scheduler-source-code/230167/3 "2014-06-03T08:49:39Z")

</div>

Also, just to embarrass myself, you can go to [1], which I wrote to  
explain a bit about how blocks are scheduled.

Also, you’d most probably not want to look at the single-threaded  
scheduler, but the thread-per-block (tpb) scheduler.

Greetings,  
Marcus

[1]  
[http://gsoc.hostalia.de/posts/a-measurement-toolbox-for-gnu-radio-my-google-summer-of-code-project.html#evaluating-block-performance](http://gsoc.hostalia.de/posts/a-measurement-toolbox-for-gnu-radio-my-google-summer-of-code-project.html#evaluating-block-performance)
