290 views

1 Answer

7 7 votes

After a child process is created using $\texttt{fork()}$, it is placed in the ready state, meaning it is ready to execute and waiting for CPU allocation.

The operating system scheduler decides whether the parent process or the child process will execute next. 

Therefore, the child process does not necessarily enter the running state immediately after its creation.

Hence, the statement is False.

Answer:
Position:
Show:

Related questions

4 4 votes
2 2 answers
409
409 views
GO Classes asked Jul 15
409 views
Consider the following C program. Assume that every $\texttt{fork()}$ call succeeds.int main(void) { unsigned long int i; for (i = 0; i < 6; i++) if (fork() >= 0) continu...
2 2 votes
1 1 answer
273
273 views
GO Classes asked Jul 15
273 views
Assume that every $\texttt{fork()}$ call succeeds.int main() { int a = 0; int rc = fork(); a++; if (rc == 0) { rc = fork(); a++; } else { a++; } printf("a is %d\n", a); }...
2 2 votes
1 1 answer
267
267 views
GO Classes asked Jul 15
267 views
Assume that every $\texttt{fork()}$ call succeeds.int main() { int pid; pid = fork() && fork(); if (!pid) printf("A\n"); else printf("B\n"); return 0; }How many times are...
4 4 votes
1 1 answer
250
250 views
GO Classes asked Jul 15
250 views
Consider the following program. Assume that every $\texttt{fork()}$ call succeeds.int main() { int p1 = 1, p2 = 2, p3 = 3; p1 = fork(); if (p2 0) p2 = fork(); if (p1 0)...