|
|
Subscribe / Log in / New account

User space getpid()

User space getpid()

Posted Dec 19, 2002 5:53 UTC (Thu) by ncm (guest, #165)
In reply to: User space gettimeofday() by kbob
Parent article: How to speed up system calls

While getpid() could certainly be put in user space, the
number of programs that it would speed up noticeably
could probably be counted on a pig's hoof. It would be
pretty surprising if any syscall used frequently enough
to make a difference could be handled in user space.

gettimeofday() is called so frequently in real programs
that any speedup matters, at least for some programs.
Few other syscalls have that property.


to post comments


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds