Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the difference detween ISR & function call

Answers were Sorted based on User's Feedback



What is the difference detween ISR & function call..

Answer / boss

If an interviewer asks this question. i would first say, it doesn't make a lot of sense in comparing these 2.

However, we can compare an ISR and a Function in terms of the do's and don'ts while writing them.

function can have anythings. there is no restriction. But ISR has some restrictions.

1. It should be as small as possible
2. Hence no large functin calls allowed (NO to printf())
3. No blocking function calls from an ISR. It should not
try to take a semaphore. but can release a
semaphore(counting/binary)


There may be few more. Pls google and collect all

Is This Answer Correct ?    1 Yes 0 No

What is the difference detween ISR & function call..

Answer / praveen

Main difference is If function is called it should be
processed by compiler where as ISR is processed only when
interrupt occur.function call can return some value .but ISR
not return any thing .

Is This Answer Correct ?    1 Yes 0 No

What is the difference detween ISR & function call..

Answer / mahesh

ISR will be initiated by the hardware and the ISR will
clear the flag that has initiated the interupt when it
returns from the ISR. The function call is initiated by the
program.

Is This Answer Correct ?    0 Yes 0 No

What is the difference detween ISR & function call..

Answer / bhavin

ISR runs in Interpret context ; where as function routine runs in thread context of Caller .

so during an interrupt total context switch happens and after returning from interrupt scheduler is invoked .

A function call is essentially just a jump instruction apart from PC and CPU reg saving no other context change hapnes ( T.ID, Process ID , address space etc) .

Is This Answer Correct ?    0 Yes 0 No

What is the difference detween ISR & function call..

Answer / manohar

ISR has priority associate whereas function call doesn't
because of this stack structure of them are different.
If we look assembly code : function call has RET and ISR have
IRET.

Is This Answer Correct ?    1 Yes 2 No

What is the difference detween ISR & function call..

Answer / ravi a joshi

There is no comparison between function call and an ISR.
Both are used in a completely different paradigm. Hence
comparison doesn't exist.

Is This Answer Correct ?    5 Yes 9 No

What is the difference detween ISR & function call..

Answer / sunitakn

In case of a function call the arguments,local variables and
return address is stored in the stack where as in case of an
ISR, after executing the current instruction the context is
saved with no return value.

Is This Answer Correct ?    7 Yes 13 No

Post New Answer

More 86 Family Interview Questions

Explain sphl instruction?

0 Answers  


Explain the difference between microcontroller and microprocessor?

0 Answers  


What are the four distinct types of memory in 8051?

0 Answers  


What is the logical difference between move a to b and compute b = a?

0 Answers  


What are the different flags included in the alu?

0 Answers  


Give here your suggestion about microprocessor 8085 and 8086. These 2 processors used in old time. I want to know its program execution time, memory space?

0 Answers  


What is an editor?

0 Answers  


Describe the jae instruction with the help of an example?

0 Answers  


What are the different functional units in 8086?

0 Answers  


State the two type of 16 bit registers and define them?

0 Answers  


Define bit?

0 Answers  


What type of interrupt is the “trap” and what does it do?

0 Answers  


Categories