Back to the 2023 paper
Similar questions
OPERATING SYSTEMIncluding the initial parent process, how many processes are created by the program shown below? ``c #include<stdio.h> #include<unistd.h> int main() { /*fork a child process */ fork(); /* fork another child process*/ fork(); /* and fork another*/ fork(); return 0; } ``20227mOperating SystemA process executes the following segment of code: ``c for (i = 1; i <= n; i++) fork(); `` The number of new processes created is: (i) n (ii) (n(n+1))/2 (iii) 2^n - 1 (iv) 2^n20222mOPERATING SYSTEMFork is used to (i) dispatch a task (ii) create a new job (iii) create a new process (iv) increase the priority of a task20232mOperating SystemA process is: (i) program in high level language kept on disk (ii) content of main memory (iii) program in execution (iv) job in secondary memory20222m
PreviousA computer system has 6 tape drives, with *n* processes competing for them. Each process may need 2 tape drives. The maximum value of *n* for which the system is guaranteed to be deadlock free is (i) 6 (ii) 5 (iii) 4 (iv) 3NextConsider the following four processes with following details (time given in ms): | Process | Arrival Time | CPU Burst Time | | :--- | :---: | :---: | | P1 | 0 | 12 | | P2 | 0 | 10 | | P3 | 1 | 4 | | P4 | 4 | 10 | | P5 | 2 | 12 | Draw the Gantt chart using RR scheduling with time slice 3ms. Calculate average waiting time and average turn-around time.