What does the term "safe interrupt" mean?

I meet this term from time to time. And now I really need a clear explanation as I want to use some MPI routines that say they are not safe to interrupt.

+5
source share
2 answers

I believe this is a different wording for reentrant. If the function is reentrant , it can be interrupted in the middle, and call.

For instance:

void function()
{
    lock(mtx);
    /* code ... */
    unlock(mtx);
}

( ). lock(mtx) , , . , .

+6

, , .

, , , , .

, , , . !

+2
source

All Articles