I cannot lie, fork() is one of my favorite syscalls.
threads that don't share the fd table, so that fdget() and fdput() are faster. child processes that do share the fd table. threads that can set their own umask and cwd instead of sharing them with all their sibling threads (secure bind() on unix domain sockets requires umask).
-
-
fun fact: most syscalls that operate on existing file descriptors (read(), write(), ...) become slower if the file descriptor table is shared with another task (more precisely, if its refcount is >1), which is the case if you're using normal threads
-
- 3 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.