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.
In which ecological category do weeds with a tender, semi-aquatic habit that can thrive in waterlogged and partially dry conditions belong?
Power generated in engine cylinder and received by piston without frictional losses ……………………
Which family of birds do ducks belong to?
Which of the following is the chief characteristic of ‘mixed farming’? (2012)
Which propagation method is commonly used for commercial Anthurium cultivation?
Which reptile is characterized by the presence of four-chambered heart?
Which of the following indigenous buffalo breeds has high content of buttermilk fat?
Which of the following entities is responsible for implementing the Pradhan Mantri Kisan Maan Dhan Yojana?
The feed conversion ratio (FCR) is the amount of feed ingested by an animal which can be converted into one kilo of live weight. Feed conversion ration...
The marginal product of a factor input initially rises with its employment level, but after reaching a certain level of employment, it starts falling. ...