356 views
0 votes
0 votes

The read system call to fetch data from a file always blocks the invoking process.[True / False] [blocking means context switching to another process]

1 Answer

0 votes
0 votes
not always only when data isn't available.

Related questions

2 votes
2 votes
3 answers
2
Philosophical_Virus asked Dec 10, 2023
906 views
Int main (){fork();printf("a");fork();printf("b");return 0;}How many distinct outputs are possible of above code? And also give outputs
0 votes
0 votes
1 answer
3
Erwin Smith asked Apr 11, 2023
786 views
void main() { int n = 1; if(fork()==0) { n = n<<1; printf(“%d, “, n); n = n <<1; } if(fork()==0) n=n+700; printf(“%d, “,n); }Which of the following output is not ...
0 votes
0 votes
1 answer
4
vikranty2j asked Mar 20, 2023
475 views
main(){int i,n; for(int i=0;i<n;i++){fork();printf("*");}}How many times ‘*’ will be printed? The answer is not 2^n ? why?