Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
BeagleBone Black Cookbook

You're reading from  BeagleBone Black Cookbook

Product type Book
Published in Nov 2015
Publisher Packt
ISBN-13 9781783982929
Pages 346 pages
Edition 1st Edition
Languages
Concepts

Table of Contents (16) Chapters

BeagleBone Black Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Setting Up for the First Time Basic Programming Recipes Physical Computing Recipes Using JavaScript, the BoneScript Library, and Python Exploring GNU/Linux Recipes Using Bash, Autotools, Debugger, and systemd Basic Programming Recipes with the Linux Kernel Run Faster, Run Real Time Applied Recipes – Sound, Picture, and Video The Internet of Things The Black in Outer Space Index

Modifying the kernel using RT-PREEMPT


To dive into the real time realm, we'll begin by exploring a piece of code that you apply to the Linux kernel directly, one which is often considered the de facto standard for real-time applications, a patch called PREEMPT_RT.

First, nomenclature. In the literature, our patch can be found referred to as CONFIG_PREEMPT_RT, PREEMPT_RT, RT-Preempt, or simply Linux RT patch. Whew! Can't anyone decide? We'll default to calling it RT-PREEMPT since that is the most common usage.

The RT-PREEMPT patch forces onto our system what is known as native real time pre-emption. This means that the patch is applied directly—or natively—onto the kernel, and allows you to preempt the entire kernel's events and processes in favor of targeted events or tasks. It makes sections of the Linux kernel pre-emptible that are ordinarily blocking.

For example, let's say we have two processes. We assign a higher priority to the second process than the first one. The patch enables a time...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}