Thread with 6 posts

jump to expanded post

oh so threads and processes are the same thing on linux, with forking and thread creation both just using the clone syscall, and it wasn't until linux 2.4 that thread groups were added to better support phreads, enabling threads to have a shared process (thread group) id. cool

Open thread at this post
R , @r@glauca.space
(open profile)

@hikari these permissions are supposed to be a property of the entire process, but linux implements them as a property of each thread. the C runtime library thus needs to wrap them in such a way that all threads appear to atomically change permissions. for extra spicy fun, this needs to remain async-signal-safe

Open remote post (opens in a new window)