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.
How many gold medals did India win in the Asian Junior Boxing Championship 2021 in Dubai?
In which country the E-commerce and Technology conglomerate Alibaba located?
Which one of the following attributes is required for internal linking in HTML?
Which Article of the Constitution of India provides that ‘there shall be a Vice President of India’?
Which of the following events was conducted by the Ministry of Ayush, GoI to mark the 100-day countdown to the International Day of Yoga 2022?
Which of the following is true about respiration?
Who was the fourth President of India?
With which of the following companies has ISRO collaborated with to strengthen research and development of NaviC messaging service?
The writ by which a High Court or the Supreme Court can secure the body of a person who has been imprisoned to be brought before it is
Which of the following is correct?