Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Tests  >  Question Bank for GATE Computer Science Engineering  >  Test: CPU Scheduling - Computer Science Engineering (CSE) MCQ

Test: CPU Scheduling - Computer Science Engineering (CSE) MCQ


Test Description

10 Questions MCQ Test Question Bank for GATE Computer Science Engineering - Test: CPU Scheduling

Test: CPU Scheduling for Computer Science Engineering (CSE) 2024 is part of Question Bank for GATE Computer Science Engineering preparation. The Test: CPU Scheduling questions and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus.The Test: CPU Scheduling MCQs are made for Computer Science Engineering (CSE) 2024 Exam. Find important definitions, questions, notes, meanings, examples, exercises, MCQs and online tests for Test: CPU Scheduling below.
Solutions of Test: CPU Scheduling questions in English are available as part of our Question Bank for GATE Computer Science Engineering for Computer Science Engineering (CSE) & Test: CPU Scheduling solutions in Hindi for Question Bank for GATE Computer Science Engineering course. Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free. Attempt Test: CPU Scheduling | 10 questions in 30 minutes | Mock test for Computer Science Engineering (CSE) preparation | Free important questions MCQ to study Question Bank for GATE Computer Science Engineering for Computer Science Engineering (CSE) Exam | Download free PDF with solutions
Test: CPU Scheduling - Question 1

Let us suppose an operating system is using semaphores to handle process synchronisation. Let there be three process that end up being blocked and placed in suspended list. Which of the following algorithms is used for waking the process?

Detailed Solution for Test: CPU Scheduling - Question 1

Semaphores: It is an integer variable which is used by various processes in mutually exclusive manner to achieve synchronisation. There are two types of semaphores -

  • Binary Semaphore
  • Counting Semaphore

There are two operations which are atomic in nature -

  • Block: it suspends the process for which it is invoked
  • wakeup(P): it resumes the execution of a blocked process P.
    • If there are two or more processes present in the suspended list, and there are no other processes present to wake these up, then these processes are said to be in deadlock.
    • If there are two or more processes present in the suspended list, then the selection of the process will be done on the basis of FCFS (First Come First Serve) for the wakeup()
Test: CPU Scheduling - Question 2

There are 200 tracks on a disk platter and the pending requests have come in the order - 36, 69, 167, 76, 42, 51, 126, 12, and 199, Assume the arm is located at the 100th track and moving towards track 200. If the sequence of disc access is 126, 167, 199, 12, 36, 42, 51, 69, and 76 then which disc access scheduling policy is used?

Detailed Solution for Test: CPU Scheduling - Question 2

Option 1: 
The elevator algorithm is also known as the SCAN algorithm. 
In this algorithm, the disk moves in a particular direction servicing the requests coming in the way till the end & reverse the direction & service all the requests.

Option 2: 
In Shortest Seek Time First(SSTF), the algorithm selects disk I/O which requires the least disk arm movement from the current position

Option 3: 
In C-scan i.e. Circular Elevator, the disk moves in a particular direction servicing the requests coming in the way till the end & reverse the direction & again goes to the start point & starts servicing the requests once reach the start point.

Option 4:
In First Come First Serve(FCFS), the disk service the request that comes first.
Hence, the correct answer is "option 3".

1 Crore+ students have signed up on EduRev. Have you? Download the App
Test: CPU Scheduling - Question 3

One disk queue with requests for I/O to blocks on cylinders. The Request are in the following manner:
98 183 37 122 14 124 65 67
Considering SSTF (shortest seek time first) scheduling, the total number of head movements is, if the disk head of initially at 53 is:

Detailed Solution for Test: CPU Scheduling - Question 3

In Shortest Seek Time First (SSTF) scheduling, after servicing every I/O request, the disk head finds the nearest block to be serviced and moves to that particular block.
For Example, after servicing block 53, the nearest block request is at 65 and moves to block 65. Similarly all the above requests are serviced as shown in the figure below

Total number of head movements = (67-53) + (67-14) + (183-14) = 236

Test: CPU Scheduling - Question 4

The real-time operating system, which of the following is the most suitable scheduling scheme? 

Detailed Solution for Test: CPU Scheduling - Question 4
  • Preemptive Scheduling is suitable for Real-Time Programming, as it will allow a real-time process to preempt a process currently running in the Kernel.
  • A preemptive Kernel may be more responsive since there is less risk that a Kernel-mode process will run for arbitrarily long periods before relinquishing the processor to the waiting process.
  • Real-time systems require that results be produced within a specified deadline. One of the key features of a Real-time system is its ability to respond to real-time processes as soon as the process requires CPU.
  • As a result, the scheduler for the real-time system must support a priority-based algorithm with preemption.
Test: CPU Scheduling - Question 5

Consider a set of n tasks with known runtimes r1,r2,.....rn to be run on a uniprocessor machine. which of the following processor scheduling algorithms will result in the maximum throughput? 

Detailed Solution for Test: CPU Scheduling - Question 5

Shortest job first scheduling:
In this job scheduling algorithm, the process having the shortest burst time or runtime will be executed first. It can be preemptive or non - preemptive. It reduces the waiting time for other processes. It results in maximum throughput.

Round-robin scheduling:
In this, each process has a time quantum associated with it. Each process gets an equal share of time to execute. It is a preemptive scheduling algorithm.

FCFS:
FCFS is a first come first serve scheduling algorithm. The process which comes first in the queue will be executed first. Processes are executed in the order of their arrival. It is the simplest scheduling algorithm.

Priority scheduling:
It is a non-preemptive scheduling algorithm. Each process is assigned a priority and they are executed in the order of their priority. Process having the highest priority will be executed first and so on. Priority is decided on the basis of memory requirements, time, and resources.
Therefore Shortest job first scheduling (SJF) will result in the highest throughput.

Test: CPU Scheduling - Question 6

henever the CPU becomes idle, the operating system must select one of the processes in the ___ to be executed.

Detailed Solution for Test: CPU Scheduling - Question 6

As we shall see when we consider the various scheduling algorithms, a ready queue can be implemented as a FIFO queue, a priority queue, a tree, or simply an unordered linked list. Conceptually, however, all the processes in the ready queue are lined up waiting for a chance to run on the CPU. The records in the queues are generally process control blocks (PCBs) of the processes

Test: CPU Scheduling - Question 7

The ____ is the module that gives control of the CPU to the process selected by the short-term scheduler.

Detailed Solution for Test: CPU Scheduling - Question 7

Another component involved in the CPU-scheduling function is the dispatcher. This function involves the following

  • Switching context
  • Switching to user mode
  • Jumping to the proper location in the user program to restart that program
Test: CPU Scheduling - Question 8

In Magnetic Disks Structures, The surface of a platter is logically divided into circular______

Detailed Solution for Test: CPU Scheduling - Question 8

Concept:
Magnetic Disks:

  • Magnetic Disks provide the bulk of secondary storage for modern computer systems. Conceptually, disks are relatively simple. Each disk platter has a flat circular shape, like a CD. The two surfaces of a platter are covered with magnetic material. We store information by recording it magnetically on the platters.
  • A read-write head "flies" just above each surface of every platter. The heads are attached to a disk arm that moves all the heads as a unit. The surface of a platter is logically divided into circular tracks which are subdivided into sectors.
*Answer can only contain numeric values
Test: CPU Scheduling - Question 9

Consider the process track request are 98, 183, 37, 122, 14, 124, 14, 124, 65, 67 and the initial seek is 53. What is the total number of seeks for the C-Look algorithm?


Detailed Solution for Test: CPU Scheduling - Question 9

Concept:
C-Look algorithm:

An enhanced variant of the LOOK Algorithm is the Circular-LOOK Algorithm. The head goes across the disc from the first request at one end to the last request at the other, serving all the requests in between. The Head turns around when it gets to the final request on the other end.
The given data,
The process track request are= 98, 183, 37, 122, 14, 124, 14, 124, 65, 67 
The initial seek = 53
C-Look algorithm:

Total number of seeks= ( 183-53 )+(183-14) +(37-14)
Total number of seeks= 322
Hence the correct answer is 322.

Test: CPU Scheduling - Question 10

The number of processes that are completed by a system per time unit, is called _______ .

Detailed Solution for Test: CPU Scheduling - Question 10

Throughput:- It is the number of units that can be produced by a production process within a certain period of time. For example, if 800 units can be produced during an eight-hour shift, then the production process generates a throughput of 100 units per hour.
Throughput = total good units produced / time.

63 videos|8 docs|165 tests
Information about Test: CPU Scheduling Page
In this test you can find the Exam questions for Test: CPU Scheduling solved & explained in the simplest way possible. Besides giving Questions and answers for Test: CPU Scheduling , EduRev gives you an ample number of Online tests for practice

Top Courses for Computer Science Engineering (CSE)

Download as PDF

Top Courses for Computer Science Engineering (CSE)