Question: How many processes are created in the following program Explain the following Difference between short-term and long-term scheduling Ordinarily the exec() system call follows the

  1. How many processes are created in the following program 

int main() { } int i; for(i=0;i

  1. Explain the following
    1. Difference between short-term and long-term scheduling
    2. Ordinarily the exec() system call follows the fork(). Explain what would happen if a programmer were to inadvertently place the call to exec() before the call to fork().
    3. Difference between parallelism and concurrency
    4. Difference between process and thread
    5. Thread pool and its use
       

int main() { } int i; for(i=0;i

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

In this program a for loop runs four times Each time a fork system call is made So at each iteration a new process is created resulting in a total of ... View full answer

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 Operating System Questions!