Académique Documents
Professionnel Documents
Culture Documents
hardware timing device that triggers a system reset if the main program,
service the watchdog. The intention is to bring the system back from
2.What is semaphore?
of a single resource.
3.What is mutex?
executable code.
by compiler.
function calls. Macros are used to maintain the readability and easy
declared local to a function. But the life time is throughout the program
for example, handle error signals, another might send a message about
the error to the user, while a third thread is executing the actual
task of the..
11. What is pass by value and pass by reference? How are structure
passed as arguments?
that when parameters are passed by value the changes made to the
The macro are just symbolic representations and cannot contain data
functions can have the data types too defined as a part of them. The
times.
The hard real time systems are the once that depend on the output
and will always be considered a failure. The soft real time systems
on the other are not very rigid as the hard real time systems. The
the result.
if (n & (n-1) == 0)
itself before giving out the final result. These can be declared as
in-line functions and the compiler will allocate the memory space
The size of the char and int are always dependent on the underlying
19. What does malloc do? What will happen if we have a statement like
malloc(sizeof(0));
function.
21. What is the order of calling for the constructors and destructors
in case of objects of inherited classes?
The constructors are called with base class first order and the
destructors are called in the child first order. That is, the if we
• Encapsulation: The data that are related to the specific object are
contained inside the object structure and hidden from the other
generic commonality.
• Inheritance: The way to take out the common features and have them
a modular fashion.
Interrupt latency refers to the time taken for the system to start
the handler for the specific interrupt. The time from the time of
int in an expression?
25. How are variables mapped across to the various memories by the
C compiler?
The compiler maintains the symbol table which has the related
information of all the variable names along with the length of the
allocated space, the access unit length for the pointer (type of
The memory leak refers to the uncleared memory mat builds up across
program tries to access a memory space that has already been freed up.
27. What is ISR? Can they be passed any parameter and can they return
a value?
type of interrupt occurs. The ISRs cannot return a value and they
a=7;
b=8;
x=a++-b;
printf(“%d”, x );
29. What are little endian and big endian types of storage?
the least significant bit and the big endian is where the highest
it as a character.
int p=0x2;
else
can come in handy when we are dealing with static data inside function
and in a program.
What are the different ways by which you can code in a infinite loop?
implemented as:
while(;;);
for();
(or)
Loop:
goto Loop;
33. What is the difference between embedded systems and the system
embedded sys may have os some may not and rtos is an os.