Doesn't (honest question) the operating system kernel prevent data races in memory accesses at the level of system calls like brk? I wonder at what level the operating system handles such things?
I mean, aren't system calls thread-safe?
I mean, aren't system calls thread-safe?