Aspire Faculty ID #19259 · Topic: UGC NET Computer Science June 2019 (Paper II) · Just now
UGC NET Computer Science June 2019 (Paper II)

Consider a disk system with $100$ cylinders. The requests to access the cylinders occur in the following sequence:

$4,34,10,7,19,73,2,15,6,20$

Assuming that the head is currently at cylinder $50$, what is the time taken to satisfy all requests if it takes $1$ ms to move from one cylinder to adjacent one and the shortest seek time first policy is used?

Solution

Using shortest seek time first policy, the head always moves to the nearest request.

Initial head position is

$50$

Request sequence in SSTF order will be:

$50 \to 34 \to 20 \to 19 \to 15 \to 10 \to 7 \to 6 \to 4 \to 2 \to 73$

Now, total head movement is

$|50-34|+|34-20|+|20-19|+|19-15|+|15-10|+|10-7|+|7-6|+|6-4|+|4-2|+|2-73|$

$=16+14+1+4+5+3+1+2+2+71$

$=119$

Since $1$ cylinder movement takes $1$ ms,

Total time taken is

$119$ ms

Previous 10 Questions — UGC NET Computer Science June 2019 (Paper II)

Nearest first
1
$K$-mean clustering algorithm has clustered the given $8$ observations into $3$ clusters after $1^{st}$ iteration as fo…
Topic: UGC NET Computer Science June 2019 (Paper II)
2
The following table has two attributes Employee_id and Manager_id, where Employee_id is a primary key and Manager_id is…
Topic: UGC NET Computer Science June 2019 (Paper II)
3
Which of the following features is supported in the relational database model?
Topic: UGC NET Computer Science June 2019 (Paper II)
4
Hadoop, a big data tool, works with a number of related tools. Choose from the following, the common tools included int…
Topic: UGC NET Computer Science June 2019 (Paper II)
5
Which of the following statements are DML statements? $(a)$ Update $[tablename]$ Set $[columnname]=VALUE$ $(b)$ Delete …
Topic: UGC NET Computer Science June 2019 (Paper II)
6
In relational database management, which of the following is/are property/properties of candidate key?$P$: Uniqueness …
Topic: UGC NET Computer Science June 2019 (Paper II)
7
Which of the following key constraints is required for functioning of foreign key in the context of relational database…
Topic: UGC NET Computer Science June 2019 (Paper II)
8
In relational databases, if relation $R$ is in $BCNF$, then which of the following is true about relation $R$?
Topic: UGC NET Computer Science June 2019 (Paper II)
9
With respect to relational algebra, which of the following operations are included for mathematical set theory? $(a)$ J…
Topic: UGC NET Computer Science June 2019 (Paper II)
10
Which of the following has same expressive power with regard to relational query language? $(a)$ Relational algebra and…
Topic: UGC NET Computer Science June 2019 (Paper II)

Next 10 Questions — UGC NET Computer Science June 2019 (Paper II)

Ascending by ID
1
Match List-I with List-II: List-I List-II (a) Disk …
Topic: UGC NET Computer Science June 2019 (Paper II)
2
Which of the following are NOT shared by the threads of the same process? $(a)$ Stack $(b)$ Registers $(c)$ Address spa…
Topic: UGC NET Computer Science June 2019 (Paper II)
3
Consider that a process has been allocated $3$ frames and has a sequence of page referencing as $1,2,1,3,7,4,5,6,3,1$. …
Topic: UGC NET Computer Science June 2019 (Paper II)
4
Consider three CPU intensive processes, which require $10,20$ and $30$ units of time and arrive at times $0,2$ and $6$ …
Topic: UGC NET Computer Science June 2019 (Paper II)
5
At a particular time of computation, the value of a counting semaphore is $7$. Then $20$ $P$ wait operations and $15$ $…
Topic: UGC NET Computer Science June 2019 (Paper II)
6
The minimum number of page frames that must be allocated to a running process in a virtual memory environment is determ…
Topic: UGC NET Computer Science June 2019 (Paper II)
7
A computer has six tape drives with $n$ processes competing for them. Each process may need two drives. What is the max…
Topic: UGC NET Computer Science June 2019 (Paper II)
8
A processor can support a maximum memory of $4GB$ where memory is word addressable and a word is $2$ bytes. What will b…
Topic: UGC NET Computer Science June 2019 (Paper II)
9
Which of the following UNIX/Linux pipes will count the number of lines in all the files having $.c$ and $.h$ as their e…
Topic: UGC NET Computer Science June 2019 (Paper II)
10
Which of the following statements is/are true? $P$: In software engineering, defects that are discovered earlier are mo…
Topic: UGC NET Computer Science June 2019 (Paper II)
Ask Your Question or Put Your Review.

loading...