Pregunta de entrevista de Nest

Describe volatile, const, static keywords. How do you share data between interrupt handler and main thread if you do not have an OS with your embedded controller? How do you optimize linear piecewise function in terms of speed?

Respuestas de entrevistas

Anónimo

28 oct 2015

Using (volatile?) global variables.

3

Anónimo

24 feb 2018

Lamport / Bakery , Dekkers, *Petersons* Petersons is the easiest to implement and explain as it only requires 2 flags and 1 int.