Given are two functions. One function writes to the shared memory using the function write_to_mem() One function reads from shared memory using the function read_from_mem() We also have a 8 bit variable sem. First function can set/clear only the first bit of sem (msb), indicating it just wrote to the mem. Second function can set/clear only the last bit of sem (lsb) indicating it finished reading from mem. Both functions can read both bits. The two functions might run on different processor with different frequencies. Processor 1 runs a code that call the first function in en endless loop Processor 2 runs a code that call the second function in en endless loop. I need to write the code in each processor such that the functions are synchronized.
Embedded Software Developer Interview Questions
339 embedded software developer interview questions shared by candidates
Interview 1: Difference between TCP and UDP. What is volatile keyword? What does it do? How does a compiler handle a volatile keyword? What problems would happen if we don't use volatile keyword?
Describe different TCP states and transitions.
countingBits problem: given a number, write C code that detects how many bits would be set in the binary representation of the number What are the issues with the below code: int calcSquare(volatile int* num){ return *num * *num; }
cuanto se del kernel de linux.
introduce your self
I was asked about my previous experienxe
how does SP works?
Implement linked list in C on the whiteboard
Expereince in LCD interface, 2D/3D, debug and development experience. Asked a question about how to make sure the LCD memory is correct during the manufacture process, and currently they have only 40% of successful rate, how to imporve it.
Viewing 11 - 20 interview questions