Process: GATE CS Previous Year Questions

Process · Operating System

11 questions · asked in 9 of 27 years (2000–2026)

MCQ 8 · MSQ 2 · NAT 11-mark 10 · 2-mark 1

2000Questions per year2026

Questions 1–5 of 11

Q1GATE 2025 (Session 1)1 markNAT
Suppose in a multiprogramming environment, the following C program segment is executed. A process goes into I/O queue whenever an I/O related operation is performed. Assume that there will always be a context switch whenever a process requests for an I/O, and also whenever the process returns from an I/O. The number of times the process will enter the ready queue during its lifetime (not counting the time the process enters the ready queue when it is run initially) is _______. (Answer in integer)

int main()
{
	int x=0,i=0;
	scanf("%d",&x);
	for(i=0; i<20; i++)
	{
		 x = x + 20;
		 printf("%d\n",x);
	}
	return 0;
}

Q2GATE 2024 (Session 1)1 markMSQ
Which of the following process state transitions is/are NOT possible?

One or more options are correct.

Q3GATE 2024 (Session 2)1 markMSQ
Consider a process P running on a CPU. Which one or more of the following events will always trigger a context switch by the OS that results in process P moving to a non-running state (e.g., ready, blocked)?

One or more options are correct.

Q4GATE 20201 markMCQ−0.33 if wrong
Consider the following statements about process state transitions for a system using preemptive scheduling.

I. A running process can move to ready state.
II. A ready process can move to running state.
III. A blocked process can move to running state.
IV. A blocked process can move to ready state.

Which of the above statements are TRUE?

Q5GATE 2015 (Session 3)1 markMCQ−0.33 if wrong
The maximum number of processes that can be in Ready state for a computer system with n CPUs is

Keep practising

Topics in Operating System

All CS topics ›