top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Why to choose system calls instead of library functions?

+1 vote
303 views
Why to choose system calls instead of library functions?
posted Apr 7, 2015 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

Its a matter of choice and your need library functions are linked to application programs and always execute in user space whereas system call executes at the kernal space and can interact directly with the hardware.

I dont know how to answer this question so putting my view point only also one thing to remember is the time consumed to execute a library function which does not in-turn invoke a system call is always lesser than the time consumed to execute a system call because the application program need not context switch between user space and kernel space.

answer Apr 7, 2015 by Salil Agrawal
Similar Questions
0 votes

I am trying to get mount point of cgroups on my RHEL & SUSE system.

From This I am able to get it but it is with the use of libcgroup's system call. I have to do it without using any libcgroup library function as libcgroup may or may not be installed on customer's server.

Can any one please help?

+6 votes

Structure padding is useful for increasing processing speed for input/output, correct?
My question is i have tested structure padding on 32 and 64 bit system but both the place padding is done to achieve 4 Bytes jump, So why not 8 byte for 64 Bit system?

...