4 ms·
getpid is only fast on ia64 according to vdso(7).
by Hello71 9y ago
getpid is only fast on ia64 according to vdso(7).
- koverstreet 9y agomanpages can generally be assumed to be out of date
- jmgao 9y agoglibc caches getpid, so you'll only see the syscall happen after the cache gets invalidated by a call to fork, clone, etc.