we must assume that we define a variable as the long (32bit). and so what happens on it's value when this variable is changed in main loop and exactly at this time an intrrupt occurs! can this variable do have any value.
please provide the correct answer and reasoning.
Exactly the same question a couple of days ago: www.8052.com/.../188976
See the answers there!
For interested people, this has already been covered here many times.
But since you write "please provide the correct answer and reasoning" it is obvious that you don't have any real interest in this question. Except that you need to supply a good answer back to your teacher.
Wouldn't it be better to spend time actually trying to learn things, than just try to get forum members to supply direct answers to copy/paste for your home work?
If I were the OP I would not use any of the answers he got so far in the link provided. They are lacking, even in Tehran...
.
They are lacking, even in Tehran...
OOPS Googling Atomicity may get you in trouble in Tehran