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.
The following question , consists of an incomplete sentence or a sentence which is split into four parts. All four parts are jumbled up and are named a...
Which of the following is the third sentence of the passage?
Directions: Sentences of a paragraph are given below in jumbled order. Arrange the sentences in the correct order to form a meaningful and coherent par...
Which sentence should come fifth in the paragraph?
Which of the following is the fifth sentence in the passage?
Two years after it wrecked havoc in some delta districts , cyclone Gaja looms over the fate of candidates in nine assembly constituencies in the region....
Given below are a few sentences in which four words are emboldened each. The words may or may not be in their correct position. Rearrange the words if ...
Given below are six sentences, four of which (P, Q, R, S), are jumbled. Pick the option that gives the correct order of P, Q, R, S.
S - 1. The si...
The question consists of five statements labelled A, B, C, D and E which when logically ordered form a coherent passage. Choose the option that represe...
Given below are six sentences, four of which (P, Q. R, S), are jumbled. Pick the option that gives the correct order of P, Q, R, S.
S-1 A summary...