How to lower CPU usage in a very tight loop without sleep?

This page summarizes the projects mentioned and recommended in the original post on /r/cpp_questions

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • libmodbus

    A Modbus library for Linux, Mac OS, FreeBSD and Windows

  • I'm writing a small program that use libmodbus to communicate with other devices. And it seems that modbus protocol only has the concept of request-reply so only way I can do to get the data is to pull it with modbus_read_registers in a loop. Something like this:

  • modbus-cpp

    Modbus master and slave implementation in C++

  • I would probably use boost::asio for that and maybe look into something this although that was just a library I found by doing a quick search online.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • eModbus

    Modbus library for RTU, ASCII and TCP protocols. Primarily developed on and for ESP32 MCUs.

  • A quick check have me this https://github.com/eModbus/eModbus

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts