Question: Questions are referring to commands in a Linux Virtual Machine terminal and using C language. 1. Give brief, precise answers. (e) Mark each word as

Questions are referring to commands in a Linux Virtual Machine terminal and using C language.

1. Give brief, precise answers.

(e) Mark each word as an executable utility (EU), a C library function (LF), or a system call (SC):

date ____

ls _____

read _____

fork _____

exit _____

isspace _____

_exit _____

dup2 _____

printf _____

getchar _____

(f) (Buffer size) Describe briefly and precisely the main reason why an I/O intensive user program or a stdio library function will suffer in performance when using a very small buffer.

(g) How many processes will be created in total (including the initial parent process) by the following code fragment? Explain your answer. Assume N to be a positive const int.

for (k = 0; k < N; k++) {

fork();

}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!