Computer Science, asked by rockdart2182, 1 year ago

Consider a program A which creates an array and sorts it, and a program B which opens a file, and writes an array to the file. Which of the following statements is True?

Pick all that apply
Program A spends more time in user space and program B spends more time in the kernel.
Program A makes more system calls than program B
Program A does more I/O than program B
If the array in both programs consists of 10000 integers, Program A is likely to take less time to complete than Program B.

Answers

Answered by pesh20gathoni
2

Answer:

Explanation:

Given:

Program A : Creates an array and sorts it.

Program B : Opens a file, and writes an array to the file.

Program A spends more time in user space and program B spends more time in the kernel.

Answer : TRUE

Explanation :

As program A Create an Array and sort it.  as compare to program B spend more time on kernel to write that array in file.

Program A makes more system calls than program B

Answer : False

Explanation :

As Program A only create an Array and sort that don't required more system call as compare to Program B

Program A does more I/O than program B

Answer : TRUE

Explanation :

Program A does more I/O opration as compare to program B.

If the array in both programs consists of 10000 integers, Program A is likely to take less time to complete than Program B.

Answer : TRUE

Explanation :

To handel system calls and open file and write contain in it , System required more time.

Similar questions