As mentioned in the "exec tasks" chapter, it is sometimes necessary to disable interrupts when examining or modifying certain shared system data structures. However, for proper system operation, interrupts should never be disabled unless absolutely necessary, and never for more than 250 microseconds. Interrupt disabling is controlled with the disable() and enable() functions. although assembler disable and enable macros are provided, we strongly suggest that you use the system functions rather than the macros for upwards compatibility and smaller code size. In some system code, there are nested disabled sections. Such code requires that interrupts be disabled with the first disable() and not re-enabled until the last enable(). the system enable() and disable() functions are designed to permit this sort of nesting. disable() increments a counter to track how many levels of disable have been issued. Only 126 levels of nesting are permitted. enable() decrements the counter, and reenables interrupts when the last disable level has been exited.