reentrant functions functions so that they modify only local variables and do not alter global data structures nonreentrant functions and use locking mechanisms to ensure that only one process can execute a nonreentrant function at a time 可重入