GATE 2001 Computer Science and Information Technology (CS) Questions with Solutions

GATE 2001

60 questions

MCQ 601-mark 60

Questions 46–50 of 60

Q46Assemblers, Linkers and Loaders1 markMCQ−0.33 if wrong
The process of assigning load addresses to the various parts of the program and adjusting the code and date in the program to reflect the assigned addresses is called

Q47Process1 markMCQ−0.33 if wrong
Which of the following does not interrupt a running process ?

Q48Process1 markMCQ−0.33 if wrong
Where does the swap space reside ?

Q49Process Synchronization1 markMCQ−0.33 if wrong
Consider Peterson's algorithm for mutual exclusion between two concurrent processes i and j . The program executed by process is shown below.
 repeat   
      flag [i] = true; 
      turn = j; 
      while ( P ) do no-op; 
      Enter critical section, perform actions, then exit critical 
      section 
      flag [ i ] = false; 
      Perform other non-critical section actions. 
   until false; 
For the program to guarantee mutual exclusion, the predicate P in the while loop should be

Q50CPU Scheduling1 markMCQ−0.33 if wrong
Consider a set of n tasks with known runtimes r1,r2,....rnr_{1},r_{2},....r_{n} to be run on a uniprocessor machine. Which of the following processor scheduling algorithms will result in the maximum throughput ?