Here is an example to illustrate what I mean:
#include #include #include int main(void) { int
only for synchronization, to ensure the atomicity of operation