Jump to Year/Set
2024 105403

B.Tech 4th Semester Examination, 2024

Time 03 Hours
Full Marks 70
Instructions:
  • The marks are indicated in the right-hand margin.
  • There are NINE questions in this paper.
  • Attempt FIVE questions in all.
  • Question No. 1 is compulsory.

Q.1 Choose the correct answer of the following (any seven question only):

Q1.1

A _____ process is moved to the ready state when its time quantum expires.

a)

Blocked

b)

New

c)

Running

d)

Suspended

Q1.2

Which of the following is also called job scheduler?

a)

DMA controller

b)

Short-term scheduler

c)

CPU scheduler

d)

Long-term scheduler

Q1.3

Compaction is used to solve the problem of

a)

External fragmentation

b)

Internal fragmentation

c)

both (i) and (ii)

d)

None of these

Q1.4

Which process can be affected by other processes executing in the system?

a)

Independent process

b)

Co-operative process

c)

Dependent Process

d)

child process

Q1.5

What is the drawback of banker's algorithm?

a)

in advance processes rarely know how much resource they will need

b)

the number of processes changes as time progresses

c)

resource once available can disappear

d)

all of the mentioned

Q1.6

An I/O port typically consists of four registers- status, control, _____ and _____ registers.

a)

system in, system out

b)

flow in, flow out

c)

data in, data out

d)

input, output

Q1.7

The address loaded into the memory address register of the memory is referred to as

a)

Physical address

b)

IP address

c)

Port address

d)

Logical address

Q1.8

Consider a disk queue with requests for I/O to blocks on cylinders: 98, 183, 37, 122, 14, 124, 65, 67. Considering FCFS (first cum first served) scheduling, the total number of head movements is, if the disk head is initially at 53 is?

a)

600

b)

630

c)

620

d)

640

Q1.9

The Trap mode bit changes from 0 to 1 when _____ mode switches to _____ mode.

a)

Kernel, User

b)

User, User

c)

Kernel, Kernel

d)

User, Kernel

Q1.10

Waiting Time is calculated as

a)

Turnaround Time - Burst Time

b)

Turnaround Time - Arrival Time

c)

Completion Time - Arrival Time

d)

Completion Time - Burst Time

Q.2 Solve both questions :

Q2.1

Define Thread? List some of the benefits of multithreading. Demonstrate the three methods to implement Threads.

Q2.2

Assume the following workload in a system:

Process Arrival Time Burst Time
P0 1 3
P1 0 6
P2 3 2
P3 4 7
P4 2 8
P5 6 5

Illustrating the execution of these job using Round Robin Scheduling algorithm calculate when given Time Quantum = 3:
(i) Average Turn Around Time
(ii) Average Waiting Time

Q.3 Solve both questions :

Q3.1

Differentiate between:
(i) User level Thread and Kernel level Thread
(ii) Contiguous and Indexed allocation method
(iii) Preemptive scheduling and Non-preemptive scheduling

Q3.2

How is a process different from a program? With an example explain why Process synchronization is necessary in multiprocessing operating system?

Q.4 Solve both questions :

Q4.1

Describe the techniques for recovery from deadlock? Explain briefly resource allocation graph with examples.

Q4.2

Consider a disk queue with requests for I/O to blocks on cylinders: 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 is initially at 53 is?

Q.5 Solve both questions :

Q5.1

What is the difference between fixed partition and variable partition also explains the need of compaction.

Q5.2

What is virtual memory? How is it implemented? Explain TLB in virtual memory with neat diagram.

Q.6 Solve both questions :

Q6.1

What is Reader-Writer problem? Explain how Semaphore is used to resolve the problem of process synchronization.

Q6.2

What is Belady's Anomaly? Why LRU and Optimal Page Replacement algorithm doesn't suffer from this problem.

Q.7 Solve both questions :

Q7.1

Compare and contrast Deadlock Prevention and Deadlock Avoidance. Can a system be in a state that is neither deadlock nor safe? If so, give an example. If not, prove that all states are either deadlock or safe.

Q.8 Solve this question :

Q8.1

Consider the following page reference string: 3, 4, 2, 1, 5, 5, 6, 2, 1, 2, 3, 7, 6, 3, 3, 2, 1, 2, 3, 6. Compare the page faults occur for the following replacement algorithms using four frames? Assume, initially all the frames are empty.
(i) LRU replacement
(ii) FIFO Replacement

Q.9 Write short notes on any two of the following:-

Q9.1
a)

Dispatcher and Scheduler

b)

Starvation and Aging

c)

Paging and Segmentation

d)

Semaphore and Mutex


2024 V4 105403

B.Tech 4th Semester Examination, 2024

Time 03 Hours
Full Marks 70
Instructions:
  • The marks are indicated in the right-hand margin.
  • There are NINE questions in this paper.
  • Attempt FIVE questions in all.
  • Question No. 1 is compulsory.

Q.1 Choose the correct answer of the following (any seven question only):

Q1.1

A _____ process is moved to the ready state when its time quantum expires.

a)

Blocked

b)

New

c)

Running

d)

Suspended

Q1.2

Which of the following is also called job scheduler?

a)

DMA controller

b)

Short-term scheduler

c)

CPU scheduler

d)

Long-term scheduler

Q1.3

Compaction is used to solve the problem of

a)

External fragmentation

b)

Internal fragmentation

c)

both (i) and (ii)

d)

None of these

Q1.4

Which process can be affected by other processes executing in the system?

a)

Independent process

b)

Co-operative process

c)

Dependent Process

d)

child process

Q1.5

What is the drawback of banker's algorithm?

a)

in advance processes rarely know how much resource they will need

b)

the number of processes changes as time progresses

c)

resource once available can disappear

d)

all of the mentioned

Q1.6

An I/O port typically consists of four registers- status, control, _____ and _____ registers.

a)

system in, system out

b)

flow in, flow out

c)

data in, data out

d)

input, output

Q1.7

The address loaded into the memory address register of the memory is referred to as

a)

Physical address

b)

IP address

c)

Port address

d)

Logical address

Q1.8

Consider a disk queue with requests for I/O to blocks on cylinders: 98, 183, 37, 122, 14, 124, 65, 67. Considering FCFS (first cum first served) scheduling, the total number of head movements is, if the disk head is initially at 53 is?

a)

600

b)

630

c)

620

d)

640

Q1.9

The Trap mode bit changes from 0 to 1 when _____ mode switches to _____ mode.

a)

Kernel, User

b)

User, User

c)

Kernel, Kernel

d)

User, Kernel

Q1.10

Waiting Time is calculated as

a)

Turnaround Time - Burst Time

b)

Turnaround Time - Arrival Time

c)

Completion Time - Arrival Time

d)

Completion Time - Burst Time

Q.2 Solve both questions :

Q2.1

Define Thread? List some of the benefits of multithreading. Demonstrate the three methods to implement Threads.

Q2.2

Assume the following workload in a system:

Process Arrival Time Burst Time
P0 1 3
P1 0 6
P2 3 2
P3 4 7
P4 2 8
P5 6 5

Illustrating the execution of these job using Round Robin Scheduling algorithm calculate when given Time Quantum = 3:
(i) Average Turn Around Time
(ii) Average Waiting Time

Q.3 Solve both questions :

Q3.1

Differentiate between:
(i) User level Thread and Kernel level Thread
(ii) Contiguous and Indexed allocation method
(iii) Preemptive scheduling and Non-preemptive scheduling

Q3.2

How is a process different from a program? With an example explain why Process synchronization is necessary in multiprocessing operating system?

Q.4 Solve both questions :

Q4.1

Describe the techniques for recovery from deadlock? Explain briefly resource allocation graph with examples.

Q4.2

Consider a disk queue with requests for I/O to blocks on cylinders: 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 is initially at 53 is?

Q.5 Solve both questions :

Q5.1

What is the difference between fixed partition and variable partition also explains the need of compaction.

Q5.2

What is virtual memory? How is it implemented? Explain TLB in virtual memory with neat diagram.

Q.6 Solve both questions :

Q6.1

What is Reader-Writer problem? Explain how Semaphore is used to resolve the problem of process synchronization.

Q6.2

What is Belady's Anomaly? Why LRU and Optimal Page Replacement algorithm doesn't suffer from this problem.

Q.7 Solve both questions :

Q7.1

Compare and contrast Deadlock Prevention and Deadlock Avoidance. Can a system be in a state that is neither deadlock nor safe? If so, give an example. If not, prove that all states are either deadlock or safe.

Q.8 Solve this question :

Q8.1

Consider the following page reference string: 3, 4, 2, 1, 5, 5, 6, 2, 1, 2, 3, 7, 6, 3, 3, 2, 1, 2, 3, 6. Compare the page faults occur for the following replacement algorithms using four frames? Assume, initially all the frames are empty.
(i) LRU replacement
(ii) FIFO Replacement

Q.9 Write short notes on any two of the following:-


2016 061503

B.Tech Examination, 2016

Time 3 hours
Full Marks 70
Instructions:
  • The marks are indicated in the right-hand margin.
  • There are NINE questions in this paper.
  • Attempt FIVE questions in all.
  • Question No. 1 is compulsory.

Questions

Q1

Choose the correct answer for any seven of the following :

a)

A direct method of deadlock prevention is to prevent the occurrences of __________

a)

Mutual exclusion

b)

Hold and wait

c)

Circular waits

d)

No pre-emption

b)

__________ is the time required to move the disk arm to the required track.

a)

Seek time

b)

Rotational delay

c)

Latency time

d)

Access time

c)

A process stack does not contain:

a)

function parameters

b)

local variables

c)

return addresses

d)

PID of child process

d)

A set of processes is deadlock if

a)

each process is blocked and will remain so forever

b)

each process is terminated

c)

all processes are trying to kill each other

d)

none of the mentioned

e)

When high priority task is indirectly pre-empted by medium priority task effectively inverting the relative priority of the two tasks, the scenario is called?

a)

Priority inversion

b)

Priority removal

c)

Priority exchange

d)

Priority modification

f)

Which module gives control of the CPU to the process selected by the short-term scheduler?

a)

dispatcher

b)

interrupt

c)

scheduler

d)

none of the mentioned

g)

The circular wait condition can be prevented by:

a)

defining a linear ordering of resource types

b)

using thread

c)

using pipes

d)

all of the mentioned

h)

Run time mapping from virtual to physical address is done by:

a)

memory management unit

b)

CPU

c)

PCI

d)

none of the mentioned

i)

Which algorithm chooses the page that has not been used for the longest period of time whenever the page required to be replaced?

a)

First in first out algorithm

b)

additional reference bit algorithm

c)

least recently used algorithm

d)

counting based page replacement algorithm

j)

The heads of the magnetic disk are attached to a .... that moves all the heads as a unit.

a)

Spindle

b)

disk arm

c)

track

d)

None of these

Q2

Answer the following:

a)

If FIFO page replacement algorithm is used with 4 page frames and 8 pages, how many page faults will occur with reference string 0124720347 if four page frames are initially empty? Solve the same problem for LRU page replacement algorithm.

b)

Define a process. Explain the process state transition with a neat diagram.

Q3

Answer the following:

a)

What is PCB? Discuss its major fields.

b)

Explain IPC Problem-Readers & Writers Problem?

Q4

Answer the following:

a)

What is deadlock? List the conditions that lead to deadlock. How deadlock can be prevented.

b)

Explain the use of Banker's algorithm for multiple resources for deadlock avoidance with illustration.

Q5

Answer the following:

a)

Explain Linux kernel and its functions in brief.

b)

Define operating system. Explain the different views of operating system. Also explain types of operating system.

Q6

Answer the following:

a)

What is Semaphore? How can we achieve the synchronization using semaphore for producer-consumer problem?

b)

Establish the necessity for memory management. Explain the memory management with the use of Linked Lists.

Q7

Answer the following:

a)

Explain the classical thread model with its implementation strategies.

b)

Discuss the Peterson's solution for the race condition with algorithm.

Q8

Answer the following:

a)

What is RAID? Explain in brief.

b)

What is I-node? Explain in detail.

Q9

Answer the following:

a)

Explain the structure of a page table entry. If a machine has 48 bit virtual addresses and 32-bit physical addresses and pages are of 8 KB, how many entries are needed for the page table?

b)

Define and explain following terms : (i) Authentication (ii) Mutual Exclusion (iii) Monitor (iv) Segmentation.


2015 061503

B.Tech Examination, 2015

Time 3 hours
Full Marks 70
Instructions:
  • The marks are indicated in the right-hand margin.
  • There are NINE questions in this paper.
  • Attempt FIVE questions in all.
  • Question No. 1 is compulsory.

Questions

Q1

Choose the correct answer (any seven) :

a)

Which of the following is a non-preemptive OS?

a)

UNIX

b)

Windows 95

c)

Windows NT

d)

None of the above

b)

The CPU utilization is low when the system is

a)

timesharing

b)

thrashing

c)

multiprocessing

d)

None of the above

c)

Which of the following is a part of FAT?

a)

Sector info

b)

Disk type

c)

Modified info

d)

Date info

d)

The available routing schemes are

a)

fixed routing

b)

virtual routing

c)

dynamic routing

e)

Which of the following CPU scheduling algorithms will prevent starvation problem?

a)

Shortest-job-first

b)

Priority scheduling

c)

Priority scheduling with aging mechanism

d)

None of the above

f)

The problem of thrashing may be reduced by

a)

using prepaging mechanism

b)

writing well-structured programs

c)

Both (i) and (ii)

d)

Neither (i) nor (ii)

g)

The purpose of virtual memory system is to

a)

allow multiprocessing

b)

allow multiprogramming

c)

allow batch processing

d)

allow execution of a program that requires larger memory than the size of the physical main memory

h)

A file system uses the contiguous space allocation mechanism for disk space allocation. For better utilization of disk space, this file system must use

a)

a garbage collection mechanism

b)

a disk compaction mechanism

c)

a linked-block allocation mechanism

d)

an indexed-block allocation mechanism

i)

CPU performance is based on

a)

ALU width

b)

clock speed

c)

number of instructions executed per second

d)

how well CPU interacts with the rest of the system

e)

Both (i) and (ii)

f)

None of the above

Q2

Answer the following:

a)

What are the main purposes of an operating system?

b)

In a multiprogramming and time-sharing environment several users share the system simultaneously. This situation can result in various security problems. (i) Explain any two such problems. (ii) Can we ensure the same degree of security in a time-shared machine as we have in dedicated machine? Explain your answer.

Q3

Answer the following:

a)

What are the differences between user-level threads and kernel-level threads? Under what circumstances is one type better than the other?

b)

What resources are used when a thread is created? How do they differ from those used when a process is created?

c)

Describe the actions taken by a kernel to context switch between kernel-level threads.

Q4

Answer the following:

a)

What is critical-section problem? How are semaphores helpful in solving this problem?

b)

What is race condition? Explain Peterson's solution to mutual exclusion problem.

c)

Explain the concept of transaction atomicity.

Q5

Answer the following:

a)

State and explain the necessary and sufficient conditions for a deadlock.

b)

Explain the issues with deadlock detection and resolution.

Q6

Answer the following:

a)

What are the various allocation policies in variable partition multiprogramming? Explain the differences between internal and external fragmentations.

b)

Consider a main memory with the capacity of 4 page frames. Assume that the pages of a process are referenced in the order as given below : 1, 3, 4, 4, 3, 2, 1, 7, 5, 6, 4, 2, 1, 2 Which of FIFO or LRU would be better in the case as a page replacement policy and why?

Q7

Answer the following:

a)

What is the cause of thrashing? How does the system detect thrashing, and once detected what can the system do to eliminate it?

b)

Consider the following page reference string : 1, 2, 3, 4, 2, 1, 5, 6, 2, 1, 2, 3, 7, 6, 3, 2, 1, 2, 3, 6 How many page faults would occur from the following replacement algorithms, assuming 1, 2, 3, 4, 5, 6 or 7 frames? (i) LRU (ii) FIFO (iii) Optimal

Q8

Answer the following:

a)

Consider a system that supports the strategies of contiguous, linked and indexed allocation. What criteria should be the used in deciding which strategy is best utilized for a particular file?

b)

What are the structures used in file-system implementation? Explain.

Q9

Answer the following:

a)

Is disk scheduling, other than FCFS scheduling, useful in a single-user environment? Explain your answer.

b)

Suppose that a disk drive has 5000 cylinders, numbered 0 to 4999. The drive is currently serving a request at cylinder 143 and the previous request was at cylinder 125. The queue of pending requests in FIFO order is 86, 1470, 913, 1774, 948, 1509, 1022, 1750, 130. Starting from the current head position, what is the total distance (in cylinders) that the disk arm moves to satisfy all the pending requests for each of the following disk-scheduling algorithms? (i) SSTF (ii) SCAN (iii) C-SCAN


Install on iOS

To install BEU Connect on your iPhone:

1. Tap the Share button at the bottom of Safari.
2. Scroll down and tap "Add to Home Screen".