{"id":3228,"date":"2025-06-04T08:42:15","date_gmt":"2025-06-04T08:42:15","guid":{"rendered":"https:\/\/diznr.com\/?p=3228"},"modified":"2025-06-04T08:42:15","modified_gmt":"2025-06-04T08:42:15","slug":"ready-running-and-waiting-states-in-process-gate-previous-year-paper-for-computer-science","status":"publish","type":"post","link":"https:\/\/www.reilsolar.com\/pdf\/ready-running-and-waiting-states-in-process-gate-previous-year-paper-for-computer-science\/","title":{"rendered":"Ready running and Waiting states in Process &#8211; Gate previous year paper for computer science"},"content":{"rendered":"<p>Ready running and Waiting states in Process &#8211; Gate previous year paper for computer science<\/p>\n<p>[fvplayer id=&#8221;308&#8243;]<\/p>\n<p>Let\u2019s break down the <strong>Ready, Running, and Waiting states<\/strong> in <strong>Process Management (Operating System)<\/strong> \u2014 a frequently asked topic in <strong>GATE Computer Science (CSE)<\/strong> \u2014 and look at how these have appeared in <strong>previous year GATE questions<\/strong>.<\/p>\n<hr \/>\n<h2>\ud83e\udde0 <strong>1. Process States Explained<\/strong><\/h2>\n<p>In a multitasking OS, a <strong>process<\/strong> goes through various states:<\/p>\n<h3>\ud83d\udfe2 <strong>Ready State<\/strong><\/h3>\n<ul>\n<li>Process is <strong>loaded into memory<\/strong> and <strong>waiting for CPU<\/strong>.<\/li>\n<li>It is <strong>ready to execute<\/strong>, but CPU is busy with some other process.<\/li>\n<li>Managed via <strong>ready queue<\/strong>.<\/li>\n<\/ul>\n<h3>\ud83d\udd35 <strong>Running State<\/strong><\/h3>\n<ul>\n<li>Process is <strong>currently being executed<\/strong> by the CPU.<\/li>\n<li>Only <strong>one process<\/strong> (per core) can be in this state at a time.<\/li>\n<\/ul>\n<h3>\ud83d\udfe1 <strong>Waiting (or Blocked) State<\/strong><\/h3>\n<ul>\n<li>Process is <strong>waiting for an event<\/strong> (like I\/O completion or resource).<\/li>\n<li>It <strong>cannot proceed<\/strong> until the event is complete.<\/li>\n<li>It is <strong>not in the ready queue<\/strong>.<\/li>\n<\/ul>\n<hr \/>\n<h2>\ud83d\udd01 <strong>State Transition Diagram<\/strong><\/h2>\n<pre><code>   +--------+     gets CPU     +----------+\n   | Ready  | ---------------&gt; | Running  |\n   +--------+                 +----------+\n       ^                          |\n       |                          | I\/O \/ Event wait\n       |                          v\n   +--------+ &lt;-------------- +----------+\n   | Waiting|     I\/O done    |          |\n   +--------+                 |\n                              v\n                          +--------+\n                          | Terminated\n                          +--------+\n<\/code><\/pre>\n<hr \/>\n<h2>\ud83d\udcd8 <strong>GATE Previous Year Questions<\/strong><\/h2>\n<h3>\ud83d\udd39 <strong>GATE CSE 2025 Question (Set 1)<\/strong><\/h3>\n<blockquote><p>Consider the following process state transition diagram:<\/p><\/blockquote>\n<ul>\n<li><strong>Which of the following transitions is illegal?<\/strong><br \/>\nA) Running \u2192 Ready<br \/>\nB) Waiting \u2192 Ready<br \/>\nC) Ready \u2192 Running<br \/>\nD) Running \u2192 New<\/li>\n<\/ul>\n<p>\ud83d\udfe2 <strong>Correct Answer:<\/strong> D) Running \u2192 New<br \/>\n\u27a1\ufe0f Because <strong>&#8220;New&#8221;<\/strong> is the initial state. A running process cannot go back to the &#8220;New&#8221; state.<\/p>\n<hr \/>\n<h3>\ud83d\udd39 <strong>GATE CSE 2025<\/strong><\/h3>\n<blockquote><p>A process is in the <strong>waiting<\/strong> state. It can move to the <strong>ready<\/strong> state when:<\/p><\/blockquote>\n<ul>\n<li>A) CPU becomes free<\/li>\n<li>B) Timer expires<\/li>\n<li>C) I\/O is complete<\/li>\n<li>D) OS switches context<\/li>\n<\/ul>\n<p>\ud83d\udfe2 <strong>Answer:<\/strong> C) I\/O is complete<br \/>\n\u27a1\ufe0f Waiting state is for I\/O wait \u2014 once done, the process goes back to Ready state.<\/p>\n<hr \/>\n<h3>\ud83d\udd39 <strong>GATE CSE 2025<\/strong><\/h3>\n<blockquote><p>Which of the following correctly describes the process transition from <strong>Running to Ready<\/strong>?<\/p><\/blockquote>\n<ul>\n<li>A) I\/O request<\/li>\n<li>B) Waiting for resource<\/li>\n<li>C) Timer interrupt<\/li>\n<li>D) Process completion<\/li>\n<\/ul>\n<p>\ud83d\udfe2 <strong>Answer:<\/strong> C) Timer interrupt<br \/>\n\u27a1\ufe0f When the time slice of a process expires (in preemptive scheduling), it goes back to Ready state.<\/p>\n<hr \/>\n<h2>\ud83d\udcdd Summary Table<\/h2>\n<table>\n<thead>\n<tr>\n<th>Transition<\/th>\n<th>Reason \/ Trigger<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Ready \u2192 Running<\/td>\n<td>CPU scheduler picks it<\/td>\n<\/tr>\n<tr>\n<td>Running \u2192 Waiting<\/td>\n<td>I\/O or event wait<\/td>\n<\/tr>\n<tr>\n<td>Waiting \u2192 Ready<\/td>\n<td>Event or I\/O completed<\/td>\n<\/tr>\n<tr>\n<td>Running \u2192 Ready<\/td>\n<td>Time slice over (preemptive)<\/td>\n<\/tr>\n<tr>\n<td>Running \u2192 Terminated<\/td>\n<td>Process finished execution<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h2>\ud83d\udce6 Want More?<\/h2>\n<p>\u2705 I can provide:<\/p>\n<ul>\n<li>GATE PYQ PDF on <strong>Process States<\/strong> (2025\u20132025)<\/li>\n<li>State diagram practice questions<\/li>\n<li>Mini quiz or flashcards<\/li>\n<li>GATE-weightage analysis per topic (OS)<\/li>\n<\/ul>\n<p>Would you like any of those?<\/p>\n<h3><a href=\"https:\/\/www.madeeasy.in\/Uploads\/examsolution\/927uf_01JP_CS_OperatingSystem_05-07-2023.pdf\" target=\"_blank\" rel=\"noopener\">Ready running and Waiting states in Process &#8211; Gate previous year paper for computer science<\/a><\/h3>\n<h3 class=\"LC20lb MBeuO DKV0Md\"><a href=\"https:\/\/gate2025.iitr.ac.in\/doc\/download\/2024\/CS224S6.pdf\" target=\"_blank\" rel=\"noopener\">Computer Science and Information Technology Set 2 (CS2)<\/a><\/h3>\n<h3 class=\"LC20lb MBeuO DKV0Md\"><a href=\"https:\/\/adgips.ac.in\/wp-content\/uploads\/2021\/05\/GATE_2011_12_13_15_16_17_18.pdf\" target=\"_blank\" rel=\"noopener\">GATE Previous Year Solved Paper<\/a><\/h3>\n<h3 class=\"LC20lb MBeuO DKV0Md\"><a href=\"https:\/\/gate2024.iisc.ac.in\/wp-content\/uploads\/2024\/CS124S5.pdf\" target=\"_blank\" rel=\"noopener\">General Aptitude (GA)<\/a><\/h3>\n","protected":false},"excerpt":{"rendered":"<p>Ready running and Waiting states in Process &#8211; Gate previous year paper for computer science [fvplayer id=&#8221;308&#8243;] Let\u2019s break down the Ready, Running, and Waiting states in Process Management (Operating System) \u2014 a frequently asked topic in GATE Computer Science (CSE) \u2014 and look at how these have appeared in previous year GATE questions. \ud83e\udde0 [&hellip;]<\/p>\n","protected":false},"author":66,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[78],"tags":[],"class_list":["post-3228","post","type-post","status-publish","format-standard","hentry","category-operating-system"],"_links":{"self":[{"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/posts\/3228","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/users\/66"}],"replies":[{"embeddable":true,"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/comments?post=3228"}],"version-history":[{"count":0,"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/posts\/3228\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/media?parent=3228"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/categories?post=3228"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/tags?post=3228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}