Facts
After the myths, the facts will follow. Therefore, we leave the area of half-truth and untruth statements about C++.
This author has not written his bio yet.
But we are proud to say that Rainer Grimm contributed 702 entries already.
After the myths, the facts will follow. Therefore, we leave the area of half-truth and untruth statements about C++.
As I started working in the embedded environment I was astonished that there was so much prejudice against the usage of C++ in embedded programming. Most are based on a wrong understanding of the programming language C++.
Bjarne Stroustrup’s FAQ makes it crystal clear. One of the design goals for C++11 was to make C++ even better for the embedded world.
The new time library is an important component of the threading interface. As well, as threads, locks, and condition variables understanding time. All four have in common that they can sleep, wait or block until a time point or for a duration.
A clock consists of a starting point and a time tick. C++ offers with std::chrono::system_clock, std::chrono::steady_clock, and std::chrono::high_resolution_clock three clocks.
Time duration is the difference between two time points. It will be measured in time ticks.
The starting point (epoch) and the additional time duration define the time point. It consists of two components, clock and time duration.
A blog dealing with multithreading in modern C++ but not writing about the new time library is incomplete. Primarily because I often used the time library in my posts to measure the performance of shortcode snippets. Therefore, I give in this post an overview of the components of the time library: time point, time duration, […]
After I’ve calculated in three different ways the sum of a std::vector I want to draw my conclusions.
Until now, I’ve used two strategies to summate a std::vector. First, I did the whole math in one thread (Single Threaded: Summation of a vector); second multiple threads shared the same variable for the result (Multithreaded: Summation of a vector). In particular, the second strategy was extremely naive. In this post, I will apply my […]
