I know that when I use pthread_create()
an appropriate memory barrier is automatically issued so the new thread is guaranteed to see all the writes made by the parent thread up until its creation.
However, what if I use clone()
manually on Linux? Should I include a full barrier myself, or will the kernel/glibc take care of that for me?