Search our courses
Training

The performance and stability of a system ultimately depends on how well you use the resources of the underlying operating system. This System Programming for Embedded Linux training course explains how to make effective use of the facilities of the POSIX compliant Linux GNU C library when implementing embedded devices. Attendees will begin with the basics of file handling, device I/O and memory and process management. They will learn how to use signals safely, how to compartmentalize an application into multiple processes and threads and the trade-offs between various types of Inter Process Communication using sockets, message queues and shared memory.

System Programming for Embedded Linux

Course Code

GTU26

Duration

4 Days

Course Fee

POA

Accreditation

N/A

Target Audience

  • This System Programming for Embedded Linux training course is designed for engineers and system architects working on embedded devices

Attendee Requirements

  • Essential: good knowledge of the C programming language, since this is used in the programming portions of the course
  • Desirable: either a good background in embedded devices, or a reasonable proficiency in Linux command-line tools. Delegates with neither will find the learning curve rather steep

Expand all

Course Description

The performance and stability of a system ultimately depends on how well you use the resources of the underlying operating system. This System Programming for Embedded Linux training course explains how to make effective use of the facilities of the POSIX compliant Linux GNU C library when implementing embedded devices. Attendees will begin with the basics of file handling, device I/O and memory and process management. They will learn how to use signals safely, how to compartmentalize an application into multiple processes and threads and the trade-offs between various types of Inter Process Communication using sockets, message queues and shared memory.

Course Outline

1. Developing for embedded Linux

  • The tool-chain: choosing, installing and testing
  • Application program interfaces: the POSIX standard
  • Open source licenses: GPL/LGPL, BSD, etc

2. Debugging

  • Debugging a remote target device using gdb and gdbserver

3. Files and devices

  • Files and file-related API: waiting for several things to happen with select() and poll()
  • Devices: everything is a file. Interfacing with a simple device driver. Using the ioctl() function to access device-specific operations

4. Processes

  • Process life cycle: fork(), exit() and exec()
  • Scheduling: real-time and non-real-time policies; setting priority and niceness

5. Memory

  • Virtual memory and its consequences
  • Allocating from the heap and stack
  • Mapping memory using mmap

6. Signals

  • Standard and real-time signals
  • Writing robust signal handlers
  • Signal masks and how to handle signals synchronously

7. Real-time Linux kernels

  • Kernel preemption
  • The real-time PREEMPT_RT patch

8. Inter-process communication

  • Pipes
  • Shared memory and semaphores
  • Message queues
  • Sockets: internet and UNIX (local). Stream and datagram connections

9. POSIX Threads

  • Thread life cycle: pthread_create(), pthread_exit(), pthread_join()
  • Scheduling threads: real-time and non-real-time
  • The thread stack and how to set the stack size

10. Thread synchronisation

  • Synchronisation using mutexes; priority inversion and priority inheritance
  • Condition variables: producer and consumer threads
  • Thread cancellation and clean-up operatorsh
Learning Path
Ways to Attend
  • Attend a public course, if there is one available. Please check our schedule, or register your interest in joining a course in your area.
  • Private onsite Team training also available, please contact us to discuss. We can customise this course to suit your business requirements.

Private Team Training is available for this course

We deliver this course either on or off-site in various regions around the world, and can customise your delivery to suit your exact business needs. Talk to us about how we can fine-tune a course to suit your team's current skillset and ultimate learning objectives.

Private Team Training | Contact us

Technical ICT learning & mentoring services

Private Team Training

Our instructors are specialist consultants with vast real world experience and expertise allowing them to design and deliver client-focused courses for your organisation.

Learn more about our Private Team Training

What Our Clients Say

"Absolutely fantastic training. Thoroughly enjoyed it thanks to our highly enthusiastic tutor.  It wouldn't be an understatement to say that it was the best professional training that I have ever received."

 

Customised Linux with Networking

Live Online -  February 2022

 

"The course content was very good. When needed, the Instructor was extending the content of the course with hints and tips to help us understand different topics that were covered in the course."

 

Kubernetes Administration Certification - GTLFK

Live Online June 2021

 

 

 

“The course was held at the highest possible standards, the instructor was excellent, well prepared, well informed, and clearly an SME. Top marks.”

 

Professional Cloud Service Manager - GTC13

Live Online December 2021

 

“Very engaging and practical course so hope to be able to put the learning into practice.”

 

Being Agile in Business - GTBAB

Live Online September 2021

 

“Great instructor, who encouraged active participation. The breakout groups and exercises kept the group engaged and the content relevant to our own products”.

 

Site Reliability Engineering Foundation - GTDSRE

Live Online January 2022

 

 

 

"Intelligence is the ability to avoid doing work, yet
getting the work done"

Linus Torvalds, creator of Linux and GIT

Technical ICT learning & mentoring services

About GuruTeam

GuruTeam is a high-level ICT Learning, Mentoring and Consultancy services company. We specialise in delivering instructor-led on and off-site training in Blockchain, Linux, Cloud, Big Data, DevOps, Kubernetes, Agile, Software & Web Development technologies. View our Testimonials

Download our eBrochure
Our Accreditation Partners
  •  
  •  
  •  

 

Upcoming Courses

Kubernetes Administration

11th - 14th March 2024

26th - 29th March 2024

Live Online

 

This Kubernetes Administration Certification training course is suitable for anyone who wants to learn the skills necessary to build and administer a Kubernetes cluster

Learn More

RUST

11th - 14th March 2024

26th - 29th March 2024

 Live Online

This course will help you understand what Rust applications look like, how to write Rust applications properly, and how to get the most out of the language and its libraries.

Learn More

Introduction to Python 3 

19th - 21st March 2024

9th - 11th April 2024

7th - 9th May 2024

   4th - 6th June 2024

 

Live Online

This Introduction to Python 3 training course is designed for anyone who needs to learn how to write programs in Python or support/modify existing programs.

 

Learn More

 GO LANG TRAINING

11th - 14th March 2024

26th - 29th March 2024

 

Live Online        

 

This Go language programming training course will help you understand how Go works, and immediately be more productive. If you are building a team using Go, this will be a great opportunity to get your team on the same page and speaking the same language. Innovative lab exercises and code samples are provided to reinforce skills and quickly master the topics.

Learn More

Newsletter

Stay up to date, receive updates on scheduled dates, new courses, offers, and events.

Subscribe to our Newsletter