I was interviewing for Senior AUTOSAR safety engineer position. So lots of in-depth questions on AUTOSAR methodology. Explain different stacks familiar with. How scheduling works in the same environment. How runnables communicate with RTE. Explain scalability classes. Explain state diagram for basic and extended tasks. How memory protection works for OS applications. Write own sizeof function. Difference between *++ptr, *ptr++ & ++*ptr
Explain process synchronization with an example to print sequential numbers, where one process can only print even, and the other odd numbers. Puzzle to identify one heavier blocks out of 9 similar blocks, with minimum steps. Explain the time complexity. Initially solved with binary logic(3 steps), and later extended with ternary logic with only 2 steps{O(logNbase3)}.