Remix.run Logo
ptrwis a day ago

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?

ptrwis a day ago | parent [-]

I mean, aren't system calls thread-safe?

spooneybarger 18 hours ago | parent [-]

As a general rule, not all system calls are thread safe.