[LCP]Which one is faster - program with unix system calls or direct c code
Bill Rausch
bill at numerical.com
Tue Jul 17 04:36:03 UTC 2001
At 12:16 PM -0500 7/15/01, Matthew Vanecek wrote:
>Unix system calls may be a smidge quicker wrt execution time. However,
>they are a pain to use in many cases, and in most cases, you're not
System calls are generally slower, not faster. To perform a system
call, a context switch has to take place for the kernel to do it's
thing. The standard library routines use buffering specifically to
avoid making so many system calls.
--
Bill Rausch, Software Development, Unix, Mac, Windows
Numerical Applications, Inc. 509-943-0861 bill at numerical.com
More information about the linuxCprogramming
mailing list