When I reading references about calloc in calloc reference in cppreference ,I found the following tips which I didn't get.
calloc is thread-safe: it behaves as though only accessing the memory locations visible through its argument, and not any static storage.
A previous call to free or realloc that deallocates a region of memory synchronizes-with a call to calloc that allocates the same or a part of the same region of memory. This synchronization occurs after any access to the memory by the deallocating function and before any access to the memory by calloc.
Can you give me examples to help to understand it?