All Exams Test series for 1 year @ ₹349 only
Question

Match List I with List II

List I

List II

System calls

Description

A.

fork()

I.

Sends a signal from one process to another process

B.

exec()

II.

Indicates termination of the current process

C.

kill()

III.

Loads the specified program in the memory

D.

exit()

IV.

Creates a child process

Choose the correct answer from the options given below :

The correct answer is

A ‐ IV, B ‐ III, C ‐ I, D ‐ II

fork() creates a child process (IV); exec() replaces the current process image with the specified program (III); kill() sends a signal (I); exit() terminates the calling process (II). The correct matching is A–IV, B–III, C–I, D–II.

Was this answer helpful?

Important Questions from Process

  1. _________ and _________ are used in conjunction for making a complete process subroutine.
  2. A computer system has 7 tape drives. There are ‘n’ processes competing for them. Each process may need 2 tape drives. What is the maximum value of ‘n’ for which the system is guaranteed to be deadlock free?

  3. Assuming that the system call fork () never fails, consider the following C programs P1 and P2 executed on a UNIX / Linux system:

    /*P1*/

    Int main() {

    fork ():

    fork () ;

    fork () ;

    Printf(“Happy\n”);

    }

    /*P2*/

    Int main() {

    fork ();

    Printf(“Happy\n”);

    fork ()

    Printf(“Happy\n”);

    fork () ;

    Printf(“Happy\n”);

    }

    Statement I: P1 displays "Happy" 8 times.

    Statement II: P2 displays "Happy" 12 times.

    In the light of the above statements, choose the correct answer from the options given below

  4. ________ system call creates new process in Unix.

  5. Identify the circumstances under which pre-emptive CPU scheduling is used:

    (a) A process switches from Running state to Ready state

    (b) A process switches from Waiting state to Ready state

    (c) A process completes its execution

    (d) A process switches from Ready to Waiting state

    Choose the correct option:

Need Expert Advice?

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App