© Agus Kurniawan 2018
Agus KurniawanPractical Contiki-NGhttps://doi.org/10.1007/978-1-4842-3408-2_3

3. Concurrency

Agus Kurniawan1 
(1)
Depok, Jawa Barat, Indonesia
 

Multi-tasking can increase the scalability of your Contiki-NG applications. This chapter will explore how to work with concurrency in Contiki-NG applications.

The following is a list of topics that will be covered in this chapter:
  • Introduction to concurrency

  • Concurrency approach in Contiki-NG

  • Threading

  • Task scheduling

Introduction to Concurrency

Concurrency is the ability to perform more than one task at the same time. Let’s say you have a WSN mote with multiple sensor devices. You want to sense through all the sensors at the same time.

We illustrate a concurrency in Figure 3-1. A process can ...

Get Practical Contiki-NG: Programming for Wireless Sensor Networks now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.