Time Left - 15:00 mins

GATE 2023 Operating System Quiz 33

Attempt now to get your rank among 102 students!

Question 1

A system can support a process with user-level threads or Kernel level threads. Identify the correct statement from the following?

Question 2

Thread shares with other threads belonging to the same process/job its ____ and ____ section, and other operating- system resources.

Question 3

If the fork() system call returns -1, then it means?

Question 4

In a multithread program, if 'exec' system call will be invoked immediately after the fork ( ) system call then option ______ gives correct behaviour regarding duplication of process threads.

Question 5

System calls are usually invoked by using which of the following?

1) A hardware interrupt

2) A software interrupt

3) Polling

4) A privileged instruction

Question 6

Consider the following code:

void main ()

{

for (int K = 1; K < 5; K + +)

Pid[K] = fork ();

}

How many child processes were created by the above code?

  • 102 attempts
  • 1 upvote
  • 6 comments
Sep 27GATE & PSU CS