Question 3706 – UGC NET CS 2015 Dec- paper-2
November 5, 2023Question 4882 – UGC NET CS 2018-DEC Paper-2
November 5, 2023Operating-Systems
Question 4 |
Which of the following standard C library functions will always invoke a system call when executed from a single-threaded process in a UNIX/linux operating system?
sleep | |
strlen | |
malloc | |
exit |
Question 4 Explanation:
- A sleep system call takes a time value as a parameter, specifying the minimum amount of time that the process is to sleep before resuming execution. The parameter typically specifies seconds, although some operating systems provide finer resolution, such as milliseconds or microseconds.
- strlen() is not system call.
- The function call malloc() is a library function call that further uses the brk() or sbrk() system call for memory allocation
- Exit also system call
Correct Answer: D
Question 4 Explanation:
- A sleep system call takes a time value as a parameter, specifying the minimum amount of time that the process is to sleep before resuming execution. The parameter typically specifies seconds, although some operating systems provide finer resolution, such as milliseconds or microseconds.
- strlen() is not system call.
- The function call malloc() is a library function call that further uses the brk() or sbrk() system call for memory allocation
- Exit also system call
Subscribe
Login
0 Comments