Time Left - 05:00 mins

GATE CS 2018 - Operating System Daily Quiz- 1 (Process and Threads )

Attempt now to get your rank among 1143 students!

Question 1

Threads of a process share

Question 2

Which of the following is/are shared by all the threads in a process?
I. Program counter
II. Stack
III. Address space
IV. Registers

Question 3

Two processes X and Y need to access a critical section. Consider the following synchronization construct used by both the processes

Here, var P and var Q are shared variables and both are initialized to false. Which one of the following statements is true?

Question 4

In indirect communication between Processes P and Q what do the two process have in common or what do they share

Question 5

Assume that a certain process executes the following code segment.
For( i =0, i<= 8, i++)
fork() ;
The number of new processes created is _______
  • 1143 attempts
  • 9 upvotes
  • 17 comments
Mar 25GATE & PSU CS