Question
Standard C library functions will always invoke a system
call when executed from a single-threaded process in a UNIX/Linux operating system?Solution
exit C library functions - Terminates the process normally, performing the regular cleanup for terminating programs. malloc - This is a function defined in standard C library and it does not always invoke the system call. When a process is created, certain amount of heap memory is already allocated to it, when required to expand or shrink that memory, it internally uses sbrk/brk system call on Unix/Linux. sleep - This is not even standard C library function, it is a POSIX standard c library function which always invokes the system call.
What is the function of the red blood cells?
Which among the following are unisexual flowers?
Which device is used to measure atmospheric pressure?
Which of the following two chemical reactions are involved in the corrosion of the iron metal?
Which type of fat is considered the healthiest?
Metalloids are
A fluid is flowing steadily through a horizontal pipe of varying cross-section. According to Bernoulli’s principle, the pressure is:
A day is considered a rainy day when it receives a rainfall of:
Which of the following materials is a good insulator?
What is the primary source of the Sun’s energy?