{"id":3260,"date":"2025-06-06T13:40:25","date_gmt":"2025-06-06T13:40:25","guid":{"rendered":"https:\/\/diznr.com\/?p=3260"},"modified":"2025-06-06T13:40:25","modified_gmt":"2025-06-06T13:40:25","slug":"swapping-out-gate-1999-operating-system-swapping-out-using-previous-year-gate-question-1999-paper","status":"publish","type":"post","link":"https:\/\/www.reilsolar.com\/pdf\/swapping-out-gate-1999-operating-system-swapping-out-using-previous-year-gate-question-1999-paper\/","title":{"rendered":"Swapping Out &#8211; GATE 1999- Operating System swapping out using Previous year gate question Paper 1999"},"content":{"rendered":"<p>Swapping Out &#8211; GATE 1999- Operating System swapping out using Previous year gate question Paper 1999<\/p>\n<p>[fvplayer id=&#8221;322&#8243;]<\/p>\n<p data-start=\"0\" data-end=\"245\">In the <strong data-start=\"7\" data-end=\"20\">GATE 1999<\/strong> examination, a question addressed the typical actions performed by an operating system during a context switch between processes. The question aimed to identify which actions are <strong data-start=\"200\" data-end=\"207\">not<\/strong> usually executed during this process.<\/p>\n<p data-start=\"247\" data-end=\"260\"><strong data-start=\"247\" data-end=\"260\">Question:<\/strong><\/p>\n<p data-start=\"262\" data-end=\"401\"><em data-start=\"262\" data-end=\"401\">Which of the following actions is\/are typically not performed by the operating system when switching context from process A to process B?<\/em><\/p>\n<p data-start=\"403\" data-end=\"487\">a) Saving current register values and restoring saved register values for process B.<\/p>\n<p data-start=\"489\" data-end=\"528\">b) Changing address translation tables.<\/p>\n<p data-start=\"530\" data-end=\"588\">c) Swapping out the memory image of process A to the disk.<\/p>\n<p data-start=\"590\" data-end=\"640\">d) Invalidating the translation look-aside buffer.<\/p>\n<p data-start=\"642\" data-end=\"712\"><strong data-start=\"642\" data-end=\"653\">Answer:<\/strong> c) Swapping out the memory image of process A to the disk.<\/p>\n<p data-start=\"714\" data-end=\"730\"><strong data-start=\"714\" data-end=\"730\">Explanation:<\/strong><\/p>\n<p data-start=\"732\" data-end=\"914\">During a context switch, the operating system performs several tasks to ensure that the CPU transitions smoothly from executing one process to another. These tasks typically include:<\/p>\n<ul data-start=\"916\" data-end=\"1448\">\n<li data-start=\"916\" data-end=\"1103\">\n<p data-start=\"918\" data-end=\"1103\"><strong data-start=\"918\" data-end=\"953\">Saving and Restoring Registers:<\/strong> The CPU&#8217;s current register values are saved so that they can be restored when the process resumes. The registers for the new process are then loaded.<\/p>\n<\/li>\n<li data-start=\"1105\" data-end=\"1261\">\n<p data-start=\"1107\" data-end=\"1261\"><strong data-start=\"1107\" data-end=\"1147\">Changing Address Translation Tables:<\/strong> The memory management unit updates the address translation tables to reflect the memory space of the new process.<\/p>\n<\/li>\n<li data-start=\"1263\" data-end=\"1448\">\n<p data-start=\"1265\" data-end=\"1448\"><strong data-start=\"1265\" data-end=\"1322\">Invalidating the Translation Look-aside Buffer (TLB):<\/strong> The TLB, which caches recent address translations, is invalidated to prevent incorrect memory access due to outdated entries.<\/p>\n<\/li>\n<\/ul>\n<p data-start=\"1450\" data-end=\"1861\">However, <strong data-start=\"1459\" data-end=\"1517\">swapping out the memory image of a process to the disk<\/strong> is not a standard action during a context switch. This operation, known as &#8220;swapping,&#8221; involves moving an entire process from main memory to disk storage to free up RAM. Swapping is typically employed under specific conditions, such as when the system is under heavy memory pressure, and is not part of the routine context-switching mechanism.<\/p>\n<p data-start=\"1863\" data-end=\"2020\">Therefore, option c) is the correct answer, as <strong data-start=\"1910\" data-end=\"1968\">swapping out the memory image of process A to the disk<\/strong> is not typically performed during a context switch.<\/p>\n<p data-start=\"2022\" data-end=\"2174\">For further details and similar questions, you can refer to the GATE 1999 question set available on GeeksforGeeks:<\/p>\n<h3 data-start=\"2022\" data-end=\"2174\"><a href=\"https:\/\/gateforum.com\/wp-content\/uploads\/2013\/01\/CS-1999.pdf\" target=\"_blank\" rel=\"noopener\">Swapping Out &#8211; GATE 1999- Operating System swapping out using Previous year gate question Paper 1999<\/a><\/h3>\n<h3 class=\"LC20lb MBeuO DKV0Md\"><a href=\"https:\/\/gnindia.dronacharya.info\/ECS\/Downloads\/Sub_info\/4thSem\/Gate\/Operating_System.pdf\" target=\"_blank\" rel=\"noopener\">Index- Operating System Sl.No. Name of the Topic 1. Process &#8230;<\/a><\/h3>\n<p>GATE 1999 \u0915\u0947 \u092a\u094d\u0930\u0936\u094d\u0928\u092a\u0924\u094d\u0930 \u092e\u0947\u0902 <strong>Operating System<\/strong> \u0935\u093f\u0937\u092f \u0915\u0947 \u0905\u0902\u0924\u0930\u094d\u0917\u0924 <strong>Swapping Out<\/strong> \u0938\u0947 \u0938\u0902\u092c\u0902\u0927\u093f\u0924 \u090f\u0915 \u092e\u0939\u0924\u094d\u0935\u092a\u0942\u0930\u094d\u0923 \u092a\u094d\u0930\u0936\u094d\u0928 \u092a\u0942\u091b\u093e \u0917\u092f\u093e \u0925\u093e\u0964 \u092f\u0939 \u092a\u094d\u0930\u0936\u094d\u0928 <strong>\u092a\u094d\u0930\u0936\u094d\u0928 \u0938\u0902\u0916\u094d\u092f\u093e 2.12<\/strong> \u0925\u093e, \u091c\u094b <strong>Context Switching<\/strong> \u0915\u0947 \u0926\u094c\u0930\u093e\u0928 \u0911\u092a\u0930\u0947\u091f\u093f\u0902\u0917 \u0938\u093f\u0938\u094d\u091f\u092e \u0926\u094d\u0935\u093e\u0930\u093e \u0915\u093f\u090f \u091c\u093e\u0928\u0947 \u0935\u093e\u0932\u0947 \u0915\u093e\u0930\u094d\u092f\u094b\u0902 \u092a\u0930 \u0915\u0947\u0902\u0926\u094d\u0930\u093f\u0924 \u0925\u093e\u0964(Gate Overflow)<\/p>\n<hr \/>\n<h3>\u2753 <strong>GATE 1999 \u2013 \u092a\u094d\u0930\u0936\u094d\u0928 2.12:<\/strong><\/h3>\n<p><strong>\u092a\u094d\u0930\u0936\u094d\u0928:<\/strong> \u0928\u093f\u092e\u094d\u0928\u0932\u093f\u0916\u093f\u0924 \u092e\u0947\u0902 \u0938\u0947 \u0915\u094c\u0928-\u0938\u0947 \u0915\u094d\u0930\u093f\u092f\u093e\u090f\u0902 \u0906\u092e\u0924\u094c\u0930 \u092a\u0930 \u0911\u092a\u0930\u0947\u091f\u093f\u0902\u0917 \u0938\u093f\u0938\u094d\u091f\u092e \u0926\u094d\u0935\u093e\u0930\u093e \u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e A \u0938\u0947 \u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e B \u092e\u0947\u0902 <strong>context switch<\/strong> \u0915\u0930\u0924\u0947 \u0938\u092e\u092f <strong>\u0928\u0939\u0940\u0902<\/strong> \u0915\u0940 \u091c\u093e\u0924\u0940 \u0939\u0948\u0902?<\/p>\n<p>A. \u0935\u0930\u094d\u0924\u092e\u093e\u0928 \u0930\u091c\u093f\u0938\u094d\u091f\u0930 \u092e\u093e\u0928\u094b\u0902 \u0915\u094b \u0938\u0939\u0947\u091c\u0928\u093e \u0914\u0930 \u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e B \u0915\u0947 \u0932\u093f\u090f \u0938\u0939\u0947\u091c\u0947 \u0917\u090f \u0930\u091c\u093f\u0938\u094d\u091f\u0930 \u092e\u093e\u0928\u094b\u0902 \u0915\u094b \u092a\u0941\u0928\u0930\u094d\u0938\u094d\u0925\u093e\u092a\u093f\u0924 \u0915\u0930\u0928\u093e\u0964<br \/>\nB. \u092a\u0924\u093e \u0905\u0928\u0941\u0935\u093e\u0926 \u0924\u093e\u0932\u093f\u0915\u093e\u0913\u0902 \u0915\u094b \u092c\u0926\u0932\u0928\u093e\u0964<br \/>\nC. \u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e A \u0915\u0940 \u092e\u0947\u092e\u094b\u0930\u0940 \u091b\u0935\u093f \u0915\u094b \u0921\u093f\u0938\u094d\u0915 \u092a\u0930 <strong>\u0938\u094d\u0935\u0948\u092a \u0906\u0909\u091f<\/strong> \u0915\u0930\u0928\u093e\u0964<br \/>\nD. Translation Lookaside Buffer (TLB) \u0915\u094b \u0905\u092e\u093e\u0928\u094d\u092f \u0915\u0930\u0928\u093e\u0964(niamt.ac.in)<\/p>\n<p><strong>\u0938\u0939\u0940 \u0909\u0924\u094d\u0924\u0930:<\/strong> <strong>C<\/strong> \u2013 \u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e A \u0915\u0940 \u092e\u0947\u092e\u094b\u0930\u0940 \u091b\u0935\u093f \u0915\u094b \u0921\u093f\u0938\u094d\u0915 \u092a\u0930 \u0938\u094d\u0935\u0948\u092a \u0906\u0909\u091f \u0915\u0930\u0928\u093e\u0964<\/p>\n<hr \/>\n<h3>\ud83d\udcd8 <strong>\u0938\u094d\u092a\u0937\u094d\u091f\u0940\u0915\u0930\u0923:<\/strong><\/h3>\n<ul>\n<li><strong>Context Switching<\/strong> \u0915\u0947 \u0926\u094c\u0930\u093e\u0928, \u0911\u092a\u0930\u0947\u091f\u093f\u0902\u0917 \u0938\u093f\u0938\u094d\u091f\u092e \u0928\u093f\u092e\u094d\u0928\u0932\u093f\u0916\u093f\u0924 \u0915\u093e\u0930\u094d\u092f \u0915\u0930\u0924\u093e \u0939\u0948:\n<ul>\n<li>\u0935\u0930\u094d\u0924\u092e\u093e\u0928 \u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e \u0915\u0947 \u0930\u091c\u093f\u0938\u094d\u091f\u0930 \u092e\u093e\u0928\u094b\u0902 \u0915\u094b \u0938\u0939\u0947\u091c\u0928\u093e \u0914\u0930 \u0928\u0908 \u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e \u0915\u0947 \u0930\u091c\u093f\u0938\u094d\u091f\u0930 \u092e\u093e\u0928\u094b\u0902 \u0915\u094b \u092a\u0941\u0928\u0930\u094d\u0938\u094d\u0925\u093e\u092a\u093f\u0924 \u0915\u0930\u0928\u093e\u0964<\/li>\n<li>\u092a\u0924\u093e \u0905\u0928\u0941\u0935\u093e\u0926 \u0924\u093e\u0932\u093f\u0915\u093e\u0913\u0902 (\u091c\u0948\u0938\u0947, \u092a\u0947\u091c \u091f\u0947\u092c\u0932\u094d\u0938) \u0915\u094b \u0905\u0926\u094d\u092f\u0924\u0928 \u0915\u0930\u0928\u093e\u0964<\/li>\n<li>TLB \u0915\u094b \u0905\u092e\u093e\u0928\u094d\u092f \u0915\u0930\u0928\u093e, \u0924\u093e\u0915\u093f \u0928\u0908 \u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e \u0915\u0947 \u0932\u093f\u090f \u0938\u0939\u0940 \u092a\u0924\u093e \u0905\u0928\u0941\u0935\u093e\u0926 \u0938\u0941\u0928\u093f\u0936\u094d\u091a\u093f\u0924 \u0915\u093f\u092f\u093e \u091c\u093e \u0938\u0915\u0947\u0964<\/li>\n<\/ul>\n<\/li>\n<li><strong>Swapping Out<\/strong> \u090f\u0915 \u092e\u0939\u0902\u0917\u093e \u0911\u092a\u0930\u0947\u0936\u0928 \u0939\u0948 \u0914\u0930 \u0915\u0947\u0935\u0932 \u0924\u092c \u0915\u093f\u092f\u093e \u091c\u093e\u0924\u093e \u0939\u0948 \u091c\u092c \u0938\u093f\u0938\u094d\u091f\u092e \u092e\u0947\u0902 \u092e\u0947\u092e\u094b\u0930\u0940 \u0915\u0940 \u0915\u092e\u0940 \u0939\u094b \u092f\u093e \u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e \u0915\u094b \u0932\u0902\u092c\u0947 \u0938\u092e\u092f \u0915\u0947 \u0932\u093f\u090f \u0928\u093f\u0932\u0902\u092c\u093f\u0924 \u0915\u0930\u0928\u093e \u0906\u0935\u0936\u094d\u092f\u0915 \u0939\u094b\u0964 \u092f\u0939 <strong>context switch<\/strong> \u0915\u0947 \u0926\u094c\u0930\u093e\u0928 \u0938\u093e\u092e\u093e\u0928\u094d\u092f\u0924\u0903 \u0928\u0939\u0940\u0902 \u0915\u093f\u092f\u093e \u091c\u093e\u0924\u093e\u0964(niamt.ac.in)<\/li>\n<\/ul>\n<hr \/>\n<h3>\ud83d\udccc <strong>\u092e\u0939\u0924\u094d\u0935\u092a\u0942\u0930\u094d\u0923 \u092c\u093f\u0902\u0926\u0941:<\/strong><\/h3>\n<ul>\n<li><strong>Swapping Out<\/strong> \u0915\u093e \u0905\u0930\u094d\u0925 \u0939\u0948 \u0915\u093f\u0938\u0940 \u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e \u0915\u0940 \u092a\u0942\u0930\u0940 \u092e\u0947\u092e\u094b\u0930\u0940 \u091b\u0935\u093f \u0915\u094b \u0921\u093f\u0938\u094d\u0915 \u092a\u0930 \u0938\u094d\u0925\u093e\u0928\u093e\u0902\u0924\u0930\u093f\u0924 \u0915\u0930\u0928\u093e, \u0924\u093e\u0915\u093f \u092e\u0941\u0916\u094d\u092f \u092e\u0947\u092e\u094b\u0930\u0940 \u092e\u0947\u0902 \u0938\u094d\u0925\u093e\u0928 \u0916\u093e\u0932\u0940 \u0915\u093f\u092f\u093e \u091c\u093e \u0938\u0915\u0947\u0964<\/li>\n<li>\u092f\u0939 \u0911\u092a\u0930\u0947\u0936\u0928 \u0924\u092d\u0940 \u0915\u093f\u092f\u093e \u091c\u093e\u0924\u093e \u0939\u0948 \u091c\u092c \u0938\u093f\u0938\u094d\u091f\u092e \u092e\u0947\u0902 \u092e\u0947\u092e\u094b\u0930\u0940 \u0915\u0940 \u0915\u092e\u0940 \u0939\u094b \u092f\u093e \u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e \u0915\u094b \u0932\u0902\u092c\u0947 \u0938\u092e\u092f \u0915\u0947 \u0932\u093f\u090f \u0928\u093f\u0932\u0902\u092c\u093f\u0924 \u0915\u0930\u0928\u093e \u0906\u0935\u0936\u094d\u092f\u0915 \u0939\u094b\u0964<\/li>\n<li>\u0938\u093e\u092e\u093e\u0928\u094d\u092f <strong>context switching<\/strong> \u0915\u0947 \u0926\u094c\u0930\u093e\u0928, \u091c\u0939\u093e\u0902 \u090f\u0915 \u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e \u0938\u0947 \u0926\u0942\u0938\u0930\u0940 \u092e\u0947\u0902 \u0924\u0947\u091c\u0940 \u0938\u0947 \u0938\u094d\u0935\u093f\u091a \u0915\u093f\u092f\u093e \u091c\u093e\u0924\u093e \u0939\u0948, <strong>swapping out<\/strong> \u0928\u0939\u0940\u0902 \u0915\u093f\u092f\u093e \u091c\u093e\u0924\u093e\u0964<\/li>\n<\/ul>\n<hr \/>\n<h3>\ud83d\udcda <strong>\u0905\u0927\u093f\u0915 \u091c\u093e\u0928\u0915\u093e\u0930\u0940 \u0915\u0947 \u0932\u093f\u090f:<\/strong><\/h3>\n<ul>\n<li>\u0906\u092a \u0907\u0938 \u092a\u094d\u0930\u0936\u094d\u0928 \u0914\u0930 \u0909\u0938\u0915\u0947 \u0935\u093f\u0938\u094d\u0924\u0943\u0924 \u0938\u092e\u093e\u0927\u093e\u0928 \u0915\u094b GATE Overflow \u092a\u0930 \u0926\u0947\u0916 \u0938\u0915\u0924\u0947 \u0939\u0948\u0902\u0964<\/li>\n<li>\u0907\u0938\u0915\u0947 \u0905\u0924\u093f\u0930\u093f\u0915\u094d\u0924, \u092f\u0939 YouTube \u0935\u0940\u0921\u093f\u092f\u094b \u0907\u0938 \u092a\u094d\u0930\u0936\u094d\u0928 \u092a\u0930 \u0935\u093f\u0938\u094d\u0924\u0943\u0924 \u0935\u094d\u092f\u093e\u0916\u094d\u092f\u093e \u092a\u094d\u0930\u0926\u093e\u0928 \u0915\u0930\u0924\u093e \u0939\u0948\u0964(Gate Overflow, YouTube)<\/li>\n<\/ul>\n<hr \/>\n<p>\u092f\u0926\u093f \u0906\u092a \u0907\u0938 \u0935\u093f\u0937\u092f \u092a\u0930 \u0914\u0930 \u0905\u0927\u093f\u0915 \u0909\u0926\u093e\u0939\u0930\u0923, \u0905\u092d\u094d\u092f\u093e\u0938 \u092a\u094d\u0930\u0936\u094d\u0928 \u092f\u093e \u0938\u094d\u092a\u0937\u094d\u091f\u0940\u0915\u0930\u0923 \u091a\u093e\u0939\u0924\u0947 \u0939\u0948\u0902, \u0924\u094b \u0915\u0943\u092a\u092f\u093e \u092c\u0924\u093e\u090f\u0902!<\/p>\n<h3><a href=\"https:\/\/cdn-images.prepp.in\/public\/image\/GATE_1999_COMPUTER_SCIENCE_AND_INFORMATION_TECHNOLOGY_QUESTION_PAPER_50a3ea1e93ee9987b0fde94ca32931ae.pdf\" target=\"_blank\" rel=\"noopener\">Swapping Out &#8211; GATE 1999- Operating System swapping out using Previous year gate question Paper 1999<\/a><\/h3>\n","protected":false},"excerpt":{"rendered":"<p>Swapping Out &#8211; GATE 1999- Operating System swapping out using Previous year gate question Paper 1999 [fvplayer id=&#8221;322&#8243;] In the GATE 1999 examination, a question addressed the typical actions performed by an operating system during a context switch between processes. The question aimed to identify which actions are not usually executed during this process. Question: [&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-3260","post","type-post","status-publish","format-standard","hentry","category-operating-system"],"_links":{"self":[{"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/posts\/3260","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=3260"}],"version-history":[{"count":0,"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/posts\/3260\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/media?parent=3260"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/categories?post=3260"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/tags?post=3260"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}