Rule for writing critical section of code

Describe the rules you follow while you are writing  critical section of code?

E

Expert

Verified

a) Use Atomic Instructions

b) Remember to enable interrupts

c) Make the critical section code as small as possible. (Prefer not more than twenty instructions)

d) Prefer not to call another function from the critical section.

   Related Questions in Science

©TutorsGlobe All rights reserved 2022-2023.