Question 1 |
Which one or more of the following options guarantee that a computer system will
transition from user mode to kernel mode?
Function Call | |
malloc Call | |
Page Fault | |
System Call |
Question 1 Explanation:
Question 2 |
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?
[MSQ]
[MSQ]
exit | |
malloc | |
sleep | |
strlen |
Question 2 Explanation:
Question 3 |
The following C program is executed on a Unix / Linux system:
#include < unistd.h >
int main() {
int i;
for (i = 0; i < 10; i++)
if (i % 2 == 0) fork();
return 0;
}
The total number of child process created is __________ .31 | |
63 | |
5 | |
6 |
Question 3 Explanation:
Question 4 |
The difference between a named pipe and a regular file in Unix is that
Unlike a regular file, named pipe is a special file | |
The data in a pipe is transient, unlike the content of a regular file | |
Pipes forbid random accessing, while regular files do allow this. | |
All of the above |
Question 4 Explanation:
Question 5 |
The following C program:
{
fork(); fork(); printf("yes");
}
If we execute this core segment, how many times the string yes will be printed?Only once | |
2 times | |
4 times | |
8 times |
Question 5 Explanation:
There are 5 questions to complete.
question number 21 correct option should be c.
Thank You Ankur Maurya,
We have updated the option.
Q. No 21 should be option C