recategorized by
399 views
0 votes
0 votes

A printf or malloc takes the process to what state?

  1. Running
  2. Ready
  3. Suspended
  4. Terminated
recategorized by

1 Answer

0 votes
0 votes
Is the answer is running , as in Malloc it required some ant of heap from main memory to allocate , it can be done while running , and print is also a process to print some statement or values,Please me if i m wrong

Related questions

0 votes
0 votes
2 answers
2
shubhojit1412 asked Jun 7, 2019
384 views
For a process the termination state lies in which memory? Main or Secondary memory?
0 votes
0 votes
2 answers
4
Sourin Kundu asked Jan 24, 2023
411 views
A process executes the following segment of code: int main(){fork();fork() && fork();}The number of new processes created is