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.
Which State has become first in India to have its own Internet Service K- Fon ?
What is the planned review year for the Kashi Declaration arising from the Youth Spiritual Summit?
What is the theme chosen by the Global Initiative for Asthma (GINA) for World Asthma Day 2024?
Rating agency Moody's has upgraded the long-term local and foreign currency deposit ratings of how many public sector banks from "Ba1" to "Baa3", reflec...
What is the total number of IFSC Banking Units (IBUs) operating in GIFT City as of the latest update (July 2025)?
What is the frequency of publishing the Consumer Price Index for Industrial Workers (CPI-IW) by the Labour Bureau?
In 2022, which aquatic species ranked eighth globally in yield according to the UN study "The State of World Fisheries and Aquaculture 2024"?
Which company has extended its partnership with Australia and New Zealand Banking Group Limited (ANZ) with a new digital transformation deal for the ban...
Who signed the schedule for the creation of the Russian orbital station?
In which city was the second Strategic Partnership Council meeting between India and Saudi Arabia held in April 2025?