PYQs

Operating Systems

15 papers · 105403, 061503, 105314

2024105403

B.Tech 4th Semester Examination, 2024

03 Hours70 marks

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):

Ask AI
  1. Q1.1

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

    a)

    Blocked

    b)

    New

    c)

    Running

    d)

    Suspended

    Ask AI
  2. 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

    Ask AI
  3. 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

    Ask AI
  4. 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

    Ask AI
  5. 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

    Ask AI
  6. 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

    Ask AI
  7. 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

    Ask AI
  8. 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

    Ask AI
  9. 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

    Ask AI
  10. 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

    Ask AI

Q.2 Solve both questions :

Ask AI
  1. Q2.1

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

    Ask AI
  2. 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

    Ask AI

Q.3 Solve both questions :

Ask AI
  1. 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

    Ask AI
  2. Q3.2

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

    Ask AI

Q.4 Solve both questions :

Ask AI
  1. Q4.1

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

    Ask AI
  2. 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?

    Ask AI

Q.5 Solve both questions :

Ask AI
  1. Q5.1

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

    Ask AI
  2. Q5.2

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

    Ask AI

Q.6 Solve both questions :

Ask AI
  1. Q6.1

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

    Ask AI
  2. Q6.2

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

    Ask AI

Q.7 Solve both questions :

Ask AI
  1. 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.

    Ask AI

Q.8 Solve this question :

Ask AI
  1. 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

    Ask AI

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

Ask AI
  1. Q9.1

    a)

    Dispatcher and Scheduler

    b)

    Starvation and Aging

    c)

    Paging and Segmentation

    d)

    Semaphore and Mutex

    Ask AI

2024V4105403

B.Tech 4th Semester Examination, 2024

03 Hours70 marks

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):

Ask AI
  1. Q1.1

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

    a)

    Blocked

    b)

    New

    c)

    Running

    d)

    Suspended

    Ask AI
  2. 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

    Ask AI
  3. 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

    Ask AI
  4. 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

    Ask AI
  5. 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

    Ask AI
  6. 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

    Ask AI
  7. 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

    Ask AI
  8. 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

    Ask AI
  9. 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

    Ask AI
  10. 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

    Ask AI

Q.2 Solve both questions :

Ask AI
  1. Q2.1

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

    Ask AI
  2. 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

    Ask AI

Q.3 Solve both questions :

Ask AI
  1. 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

    Ask AI
  2. Q3.2

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

    Ask AI

Q.4 Solve both questions :

Ask AI
  1. Q4.1

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

    Ask AI
  2. 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?

    Ask AI

Q.5 Solve both questions :

Ask AI
  1. Q5.1

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

    Ask AI
  2. Q5.2

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

    Ask AI

Q.6 Solve both questions :

Ask AI
  1. Q6.1

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

    Ask AI
  2. Q6.2

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

    Ask AI

Q.7 Solve both questions :

Ask AI
  1. 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.

    Ask AI

Q.8 Solve this question :

Ask AI
  1. 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

    Ask AI

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

Ask AI

2023105403

End Semester Examination - 2023

03 Hours70 marks

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 Answer any seven question of the following:

Ask AI
  1. Q1.1

    A computer system has 9 tape drives, with $ n $ processes competing for them. Each process may need 3 tape drives. The maximum value of $ n $ for which the system is guaranteed to be deadlock free is

    a)

    9

    b)

    7

    c)

    8

    d)

    6

    Ask AI
  2. Q1.2

    Which of the following page replacement algorithms suffers from Belady's anomaly?

    a)

    Optimal replacement

    b)

    LRU

    c)

    FIFO

    d)

    Both (a) and (c)

    Ask AI
  3. Q1.3

    Scheduling a process from ready Queue to CPU is done by

    a)

    Short term scheduler

    b)

    Middle term scheduler

    c)

    Long term scheduler

    d)

    Dispatcher

    Ask AI
  4. Q1.4

    The time to move the disk arm to the desired cylinder in hard disk is known as

    a)

    rotational latency

    b)

    seek time

    c)

    positional time

    d)

    disk time

    Ask AI
  5. Q1.5

    Compaction is used to solve the problem of

    a)

    external fragmentation

    b)

    internal fragmentation

    c)

    both (a) and (c)

    d)

    None of these

    Ask AI
  6. Q1.6

    __________ is a technique of improving the priority of process waiting in queue for CPU allocation.

    a)

    Starvation

    b)

    Ageing

    c)

    Revocation

    d)

    Relocation

    Ask AI
  7. Q1.7

    The CPU utilization is low when the system is

    a)

    timesharing

    b)

    thrashing

    c)

    multiprocessing

    d)

    None of the above

    Ask AI
  8. Q1.8

    When a process waits indefinitely for some resources which are being used by other processes, it is called

    a)

    Starvation

    b)

    Demand Paging

    c)

    Segmentation

    d)

    None of the above

    Ask AI
  9. Q1.9

    Fork is used to

    a)

    dispatch a task

    b)

    create a new job

    c)

    create a new process

    d)

    increase the priority of a task

    Ask AI
  10. Q1.10

    Which one of the following is the deadlock avoidance algorithm?

    a)

    Banker's algorithm

    b)

    Round-robin algorithm

    c)

    Elevator algorithm

    d)

    Karn's algorithm

    Ask AI

Q.2 Solve both questions :

Ask AI
  1. Q2.1

    Explain the concept of a process. With the help of a state transition diagram, discuss the various process states.

    Ask AI
  2. Q2.2

    Describe the differences among short term, medium-term, and long-term scheduling.

    Ask AI

Q.3 Solve both questions :

Ask AI
  1. Q3.1

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

    Ask AI
  2. Q3.2

    What do you understand by address binding? Explain the various address binding schemes.

    Ask AI

Q.4 Solve all questions :

Ask AI
  1. Q4.1

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

    Ask AI
  2. Q4.2

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

    Ask AI
  3. Q4.3

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

    Ask AI

Q.5 Solve both questions :

Ask AI
  1. Q5.1

    What do you understand by deadlock? Discuss the methods to avoid deadlock.

    Ask AI
  2. Q5.2

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

    Ask AI

Q.6 Solve this question :

Ask AI
  1. Q6.1

    Consider the following process with the given table:

    Process Arrival Time Burst Time
    P1 0.0 7
    P2 2.0 4
    P3 4.0 1
    P4 5.0 4

    Considering non-preemptive and preemptive SJF algorithm, find out average waiting time and average turnaround time in both cases.

    Ask AI

Q.7 Solve both questions :

Ask AI
  1. Q7.1

    What do you mean by critical section problem? Discuss Peterson's solution for critical section problem.

    Ask AI
  2. Q7.2

    Consider the following page reference string :
    7, 0, 1, 2, 0, 3, 0, 4, 2, 3, 0, 3, 2, 1, 2, 0, 1, 7, 0, 1
    How many page faults would occur for the following replacement algorithms? Assuming 3 frames are available. Also assume that initially none of pages in main memory.
    (i) Optimal replacement
    (ii) FIFO replacement

    Ask AI

Q.8 Solve both questions :

Ask AI
  1. Q8.1

    Suppose a disk drive has 300 cylinders, numbered 0 to 299. The current head position of the disk is at 90. The queue of pending requests, in FIFO order is 36, 79, 15, 120, 199, 270, 89, 170. Calculate the average cylinder movements for Shortest-Seek Time First (SSTF) algorithm. Mention the disadvantages of SSTF.

    Ask AI
  2. Q8.2

    Compare and contrast between linked and indexed disk allocation strategies.

    Ask AI

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

Ask AI
  1. Q9.1

    I-node

    Ask AI
  2. Q9.2

    Segmentation

    Ask AI
  3. Q9.3

    Thrashing

    Ask AI
  4. Q9.4

    Process Control Block

    Ask AI

2023V4105403

End Semester Examination - 2023

03 Hours70 marks

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 Answer any seven question of the following:

Ask AI
  1. Q1.1

    A computer system has 9 tape drives, with $ n $ processes competing for them. Each process may need 3 tape drives. The maximum value of $ n $ for which the system is guaranteed to be deadlock free is

    a)

    9

    b)

    7

    c)

    8

    d)

    6

    Ask AI
  2. Q1.2

    Which of the following page replacement algorithms suffers from Belady's anomaly?

    a)

    Optimal replacement

    b)

    LRU

    c)

    FIFO

    d)

    Both (a) and (c)

    Ask AI
  3. Q1.3

    Scheduling a process from ready Queue to CPU is done by

    a)

    Short term scheduler

    b)

    Middle term scheduler

    c)

    Long term scheduler

    d)

    Dispatcher

    Ask AI
  4. Q1.4

    The time to move the disk arm to the desired cylinder in hard disk is known as

    a)

    rotational latency

    b)

    seek time

    c)

    positional time

    d)

    disk time

    Ask AI
  5. Q1.5

    Compaction is used to solve the problem of

    a)

    external fragmentation

    b)

    internal fragmentation

    c)

    both (a) and (c)

    d)

    None of these

    Ask AI
  6. Q1.6

    __________ is a technique of improving the priority of process waiting in queue for CPU allocation.

    a)

    Starvation

    b)

    Ageing

    c)

    Revocation

    d)

    Relocation

    Ask AI
  7. Q1.7

    The CPU utilization is low when the system is

    a)

    timesharing

    b)

    thrashing

    c)

    multiprocessing

    d)

    None of the above

    Ask AI
  8. Q1.8

    When a process waits indefinitely for some resources which are being used by other processes, it is called

    a)

    Starvation

    b)

    Demand Paging

    c)

    Segmentation

    d)

    None of the above

    Ask AI
  9. Q1.9

    Fork is used to

    a)

    dispatch a task

    b)

    create a new job

    c)

    create a new process

    d)

    increase the priority of a task

    Ask AI
  10. Q1.10

    Which one of the following is the deadlock avoidance algorithm?

    a)

    Banker's algorithm

    b)

    Round-robin algorithm

    c)

    Elevator algorithm

    d)

    Karn's algorithm

    Ask AI

Q.2 Solve both questions :

Ask AI
  1. Q2.1

    Explain the concept of a process. With the help of a state transition diagram, discuss the various process states.

    Ask AI
  2. Q2.2

    Describe the differences among short term, medium-term, and long-term scheduling.

    Ask AI

Q.3 Solve both questions :

Ask AI
  1. Q3.1

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

    Ask AI
  2. Q3.2

    What do you understand by address binding? Explain the various address binding schemes.

    Ask AI

Q.4 Solve all questions :

Ask AI
  1. Q4.1

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

    Ask AI
  2. Q4.2

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

    Ask AI
  3. Q4.3

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

    Ask AI

Q.5 Solve both questions :

Ask AI
  1. Q5.1

    What do you understand by deadlock? Discuss the methods to avoid deadlock.

    Ask AI
  2. Q5.2

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

    Ask AI

Q.6 Solve this question :

Ask AI
  1. Q6.1

    Consider the following process with the given table:

    Process Arrival Time Burst Time
    P1 0.0 7
    P2 2.0 4
    P3 4.0 1
    P4 5.0 4

    Considering non-preemptive and preemptive SJF algorithm, find out average waiting time and average turnaround time in both cases.

    Ask AI

Q.7 Solve both questions :

Ask AI
  1. Q7.1

    What do you mean by critical section problem? Discuss Peterson's solution for critical section problem.

    Ask AI
  2. Q7.2

    Consider the following page reference string :
    7, 0, 1, 2, 0, 3, 0, 4, 2, 3, 0, 3, 2, 1, 2, 0, 1, 7, 0, 1
    How many page faults would occur for the following replacement algorithms? Assuming 3 frames are available. Also assume that initially none of pages in main memory.
    (i) Optimal replacement
    (ii) FIFO replacement

    Ask AI

Q.8 Solve both questions :

Ask AI
  1. Q8.1

    Suppose a disk drive has 300 cylinders, numbered 0 to 299. The current head position of the disk is at 90. The queue of pending requests, in FIFO order is 36, 79, 15, 120, 199, 270, 89, 170. Calculate the average cylinder movements for Shortest-Seek Time First (SSTF) algorithm. Mention the disadvantages of SSTF.

    Ask AI
  2. Q8.2

    Compare and contrast between linked and indexed disk allocation strategies.

    Ask AI

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

Ask AI
  1. Q9.1

    I-node

    Ask AI
  2. Q9.2

    Segmentation

    Ask AI
  3. Q9.3

    Thrashing

    Ask AI
  4. Q9.4

    Process Control Block

    Ask AI

2022105403

B.Tech 4th Semester Exam., 2022

3 hours70 marks

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 Answer/Choose the correct answer of the following (any seven):

Ask AI
  1. Q1.1

    What is the difference between a multiprocessor and a multicore system?

    Ask AI
  2. Q1.2

    What is multiprogramming?

    Ask AI
  3. Q1.3

    Define jacketing.

    Ask AI
  4. Q1.4

    What operations can be performed on a semaphore?

    Ask AI
  5. Q1.5

    What is the difference between a page and a frame?

    Ask AI
  6. Q1.6

    In contiguous memory allocation

    a)

    each process is contained in a single contiguous section of memory

    b)

    all processes are contained in a single contiguous section of memory

    c)

    the memory space is contiguous

    d)

    None of the above

    Ask AI
  7. Q1.7

    If the size of logical address space is 2 to the power of $ m $, and a page size is 2 to the power of $ n $ addressing units, then the high order ___ bits of a logical address designate the page number, and the ___ low order bits designate the page offset.

    a)

    m,nm, n

    b)

    n,mn, m

    c)

    m−n,mm-n, m

    d)

    m−n,nm-n, n

    Ask AI
  8. Q1.8

    If the wait for graph contains a cycle, then

    a)

    a deadlock does not exist

    b)

    a deadlock exists

    c)

    the system is in a safe state

    d)

    either deadlock exists or system is in a safe state

    Ask AI
  9. Q1.9

    When the event for which a thread is blocked occurs?

    a)

    Thread moves to the ready queue

    b)

    Thread remains blocked

    c)

    Thread completes

    d)

    A new thread is provided

    Ask AI
  10. Q1.10

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

    a)

    system in, system out

    b)

    data in, data out

    c)

    flow in, flow out

    d)

    input, output

    Ask AI

Q.2 Solve both questions :

Ask AI
  1. Q2.1

    What is the purpose of interrupts? What are the differences between a trap and an interrupt? Can traps be generated intentionally by a user program? If so, for what purpose?

    Ask AI
  2. Q2.2

    Answer the following with full justifications:
    Does swapping improve or degrade the efficiency of system utilization?
    Can swapping be used in a multiprogramming system?

    Ask AI

Q.3 Solve both questions :

Ask AI
  1. Q3.1

    Including the initial parent process, how many processes are created by the program shown below?
    #include<stdio.h>
    #include<unistd.h>
    int main()
    {
    /* fork a child process */
    fork();
    /* fork another child process */
    fork();
    /* and fork another */
    fork();
    return 0;
    }

    Ask AI
  2. Q3.2

    Describe the differences among short-term, medium-term, and long-term scheduling.

    Ask AI

Q.4 Solve both questions :

Ask AI
  1. Q4.1

    An airline reservation system, using a centralized database service, user requests concurrently. Is it preferable to use threads rather than processes in this system? Give reasons for your answer.

    Ask AI
  2. Q4.2

    Consider a system running ten I/O-bound tasks and one CPU-bound task. Assume that the I/O-bound tasks issue an I/O operation once for every millisecond of CPU computing and that each I/O operation takes 10 milliseconds to complete. Also assume that the context-switching overhead is 0.1 millisecond and that all processes are long-running tasks. Describe the CPU utilization for a round-robin scheduler when-
    (i) the time quantum is 1 millisecond;
    (ii) the time quantum is 10 milliseconds.

    Ask AI

Q.5 Solve both questions :

Ask AI
  1. Q5.1

    Clearly justify why deadlocks cannot arise in a bounded buffer producers-consumers system.

    Ask AI
  2. Q5.2

    Consider a system consisting of four resources of the same type that are shared by three processes, each of which needs at most two resources. Show that the system is deadlock-free.

    Ask AI

Q.6 Solve this question :

Ask AI
  1. Q6.1

    Five batch jobs, A through E, arrive at a computer center at essentially the same time. They have an estimated running time of 15, 9, 3, 6 and 12 minutes, respectively. Their (externally defined) priorities are 6, 3, 1, 4 and 2, respectively, with a lower value corresponding to a higher priority. For each of the following scheduling algorithms, determine the waiting time for each process and the average waiting for all jobs. Ignore process switching overhead. Explain how you arrived at your answers. In the last three cases, assume that only one job at a time runs until it finishes and that all jobs are completely processor bound:
    (a) Priority scheduling
    (b) FCFS (run in order 15, 9, 3, 6 and 12)
    (c) Shortest job first

    Ask AI

Q.7 Solve this question :

Ask AI
  1. Q7.1

    A bridge on a busy highway is damaged by a flood. One-way traffic is to be instituted on the bridge by permitting vehicles traveling in opposite directions to use the bridge alternately. The following rules are formulated for use of the bridge:
    (a) At any time, the bridge is used by vehicle(s) traveling in one direction only.
    (b) If vehicles are waiting to cross the bridge at both ends, only one vehicle from one end is allowed to cross the bridge before a vehicle from the other end starts crossing the bridge.
    (c) If no vehicles are waiting at one end, then any numbers of vehicles from the other end are permitted to cross the bridge.
    Develop a concurrent system to implement these rules.

    Ask AI

Q.8 Solve both questions :

Ask AI
  1. Q8.1

    Consider a simple paging system with the following parameters:
    • $ 232 $ bytes of physical memory
    • Page size of $ 210 $ bytes
    • $ 216 $ pages of logical address space
    (i) How many bits are in a logical address?
    (ii) How many bytes are in a frame?
    (iii) How many bits in the physical address specify the frame?
    (iv) How many entries are in the page table?

    Ask AI
  2. Q8.2

    Given five memory partitions of 100 KB, 500 KB, 200 KB, 300 KB and 600 KB (in order). How would the first-fit, best-fit, and worst-fit algorithms place processes of 212 KB, 417 KB, 112 KB and 426 KB (in order)? Which algorithm makes the most efficient use of memory?

    Ask AI

Q.9 Solve both questions :

Ask AI
  1. Q9.1

    Consider a demand paging system with a paging disk that has an average access and transfer time of 20 milliseconds. Addresses are translated through a page table in main memory, with an access time of 1 microsecond. Thus, each memory reference through the page table takes two accesses. To improve this time, we have added an associative memory that reduces access time to one memory reference if the page-table entry is in the associative memory. Assume that 80 percent of the accesses are in the associative memory and that of those remaining 10 percent (or 2 percent of the total) cause page faults. What is the effective memory access time?

    Ask AI
  2. Q9.2

    The open file table is used to maintain information about files that are currently open. Should the operating system maintain a separate table for each user or just maintain one table that contains references to files that are currently being accessed by all users? If the same file is being accessed by two different programs or users, should there be separate entries in the open-file table?

    Ask AI

2022V4105403

B.Tech 4th Semester Exam., 2022

3 hours70 marks

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 Answer/Choose the correct answer of the following (any seven):

Ask AI
  1. Q1.1

    What is the difference between a multiprocessor and a multicore system?

    Ask AI
  2. Q1.2

    What is multiprogramming?

    Ask AI
  3. Q1.3

    Define jacketing.

    Ask AI
  4. Q1.4

    What operations can be performed on a semaphore?

    Ask AI
  5. Q1.5

    What is the difference between a page and a frame?

    Ask AI
  6. Q1.6

    In contiguous memory allocation

    a)

    each process is contained in a single contiguous section of memory

    b)

    all processes are contained in a single contiguous section of memory

    c)

    the memory space is contiguous

    d)

    None of the above

    Ask AI
  7. Q1.7

    If the size of logical address space is 2 to the power of $ m $, and a page size is 2 to the power of $ n $ addressing units, then the high order ___ bits of a logical address designate the page number, and the ___ low order bits designate the page offset.

    a)

    m,nm, n

    b)

    n,mn, m

    c)

    m−n,mm-n, m

    d)

    m−n,nm-n, n

    Ask AI
  8. Q1.8

    If the wait for graph contains a cycle, then

    a)

    a deadlock does not exist

    b)

    a deadlock exists

    c)

    the system is in a safe state

    d)

    either deadlock exists or system is in a safe state

    Ask AI
  9. Q1.9

    When the event for which a thread is blocked occurs?

    a)

    Thread moves to the ready queue

    b)

    Thread remains blocked

    c)

    Thread completes

    d)

    A new thread is provided

    Ask AI
  10. Q1.10

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

    a)

    system in, system out

    b)

    data in, data out

    c)

    flow in, flow out

    d)

    input, output

    Ask AI

Q.2 Solve both questions :

Ask AI
  1. Q2.1

    What is the purpose of interrupts? What are the differences between a trap and an interrupt? Can traps be generated intentionally by a user program? If so, for what purpose?

    Ask AI
  2. Q2.2

    Answer the following with full justifications:
    Does swapping improve or degrade the efficiency of system utilization?
    Can swapping be used in a multiprogramming system?

    Ask AI

Q.3 Solve both questions :

Ask AI
  1. Q3.1

    Including the initial parent process, how many processes are created by the program shown below?
    #include<stdio.h>
    #include<unistd.h>
    int main()
    {
    /* fork a child process */
    fork();
    /* fork another child process */
    fork();
    /* and fork another */
    fork();
    return 0;
    }

    Ask AI
  2. Q3.2

    Describe the differences among short-term, medium-term, and long-term scheduling.

    Ask AI

Q.4 Solve both questions :

Ask AI
  1. Q4.1

    An airline reservation system, using a centralized database service, user requests concurrently. Is it preferable to use threads rather than processes in this system? Give reasons for your answer.

    Ask AI
  2. Q4.2

    Consider a system running ten I/O-bound tasks and one CPU-bound task. Assume that the I/O-bound tasks issue an I/O operation once for every millisecond of CPU computing and that each I/O operation takes 10 milliseconds to complete. Also assume that the context-switching overhead is 0.1 millisecond and that all processes are long-running tasks. Describe the CPU utilization for a round-robin scheduler when-
    (i) the time quantum is 1 millisecond;
    (ii) the time quantum is 10 milliseconds.

    Ask AI

Q.5 Solve both questions :

Ask AI
  1. Q5.1

    Clearly justify why deadlocks cannot arise in a bounded buffer producers-consumers system.

    Ask AI
  2. Q5.2

    Consider a system consisting of four resources of the same type that are shared by three processes, each of which needs at most two resources. Show that the system is deadlock-free.

    Ask AI

Q.6 Solve this question :

Ask AI
  1. Q6.1

    Five batch jobs, A through E, arrive at a computer center at essentially the same time. They have an estimated running time of 15, 9, 3, 6 and 12 minutes, respectively. Their (externally defined) priorities are 6, 3, 1, 4 and 2, respectively, with a lower value corresponding to a higher priority. For each of the following scheduling algorithms, determine the waiting time for each process and the average waiting for all jobs. Ignore process switching overhead. Explain how you arrived at your answers. In the last three cases, assume that only one job at a time runs until it finishes and that all jobs are completely processor bound:
    (a) Priority scheduling
    (b) FCFS (run in order 15, 9, 3, 6 and 12)
    (c) Shortest job first

    Ask AI

Q.7 Solve this question :

Ask AI
  1. Q7.1

    A bridge on a busy highway is damaged by a flood. One-way traffic is to be instituted on the bridge by permitting vehicles traveling in opposite directions to use the bridge alternately. The following rules are formulated for use of the bridge:
    (a) At any time, the bridge is used by vehicle(s) traveling in one direction only.
    (b) If vehicles are waiting to cross the bridge at both ends, only one vehicle from one end is allowed to cross the bridge before a vehicle from the other end starts crossing the bridge.
    (c) If no vehicles are waiting at one end, then any numbers of vehicles from the other end are permitted to cross the bridge.
    Develop a concurrent system to implement these rules.

    Ask AI

Q.8 Solve both questions :

Ask AI
  1. Q8.1

    Consider a simple paging system with the following parameters:
    • $ 232 $ bytes of physical memory
    • Page size of $ 210 $ bytes
    • $ 216 $ pages of logical address space
    (i) How many bits are in a logical address?
    (ii) How many bytes are in a frame?
    (iii) How many bits in the physical address specify the frame?
    (iv) How many entries are in the page table?

    Ask AI
  2. Q8.2

    Given five memory partitions of 100 KB, 500 KB, 200 KB, 300 KB and 600 KB (in order). How would the first-fit, best-fit, and worst-fit algorithms place processes of 212 KB, 417 KB, 112 KB and 426 KB (in order)? Which algorithm makes the most efficient use of memory?

    Ask AI

Q.9 Solve both questions :

Ask AI
  1. Q9.1

    Consider a demand paging system with a paging disk that has an average access and transfer time of 20 milliseconds. Addresses are translated through a page table in main memory, with an access time of 1 microsecond. Thus, each memory reference through the page table takes two accesses. To improve this time, we have added an associative memory that reduces access time to one memory reference if the page-table entry is in the associative memory. Assume that 80 percent of the accesses are in the associative memory and that of those remaining 10 percent (or 2 percent of the total) cause page faults. What is the effective memory access time?

    Ask AI
  2. Q9.2

    The open file table is used to maintain information about files that are currently open. Should the operating system maintain a separate table for each user or just maintain one table that contains references to files that are currently being accessed by all users? If the same file is being accessed by two different programs or users, should there be separate entries in the open-file table?

    Ask AI

2019061503

B.Tech 5th Semester Exam., 2019

3 hours70 marks

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.

  1. Choose the correct answer from any seven of the following :

Ask AI
  1. Q1.a

    What is operating system?

    a)

    Collection of programs that manages hardware resources

    b)

    System service provider to the application programs

    c)

    Interface between user and hardware

    d)

    All of the above

    Ask AI
  2. Q1.g

    The processes that are residing in main memory and are ready and waiting to execute are kept on a list called

    a)

    job queue

    b)

    ready queue

    c)

    execution queue

    d)

    process queue

    Ask AI
  3. Q1.h

    Which of the following conditions is required for deadlock to be possible?

    a)

    Mutual exclusion

    b)

    A process may hold allocated resources while awaiting assignment of other resources

    c)

    No resource can be forcibly removed from a process holding it

    d)

    All of the above

    Ask AI
  4. Q1.i

    Which one of the following is the deadlock avoidance algorithm?

    a)

    Banker's algorithm

    b)

    Round-robin algorithm

    c)

    Elevator algorithm

    d)

    Karn's algorithm

    Ask AI
  5. Q1.j

    Physical memory is broken into fixed-sized blocks called

    a)

    frames

    b)

    pages

    c)

    backing store

    d)

    None of the above

    Ask AI

Q.2

Ask AI
  1. Q2

    What is process control block? Explain it. Discuss the difference among short-term, medium-term and long-term scheduling.

    Ask AI

Q.3

Ask AI
  1. Q3

    Consider the following process :

    Process Arrival Time Burst Time
    P1 0.0 7
    P2 2.0 4
    P3 4.0 1
    P4 5.0 4

    Considering non-preemptive and preemptive SJF algorithm, find out average waiting time and average turnaround time in both cases.

    Ask AI

Q.4

Ask AI
  1. Q4

    What do you understand by race condition? Give few example of arising of race condition in concurrent processing.

    Ask AI

Q.5

Ask AI
  1. Q5.a

    Define semaphore. Give a scheme for implementation of semaphore primitives.

    Ask AI
  2. Q5.b

    What do you mean by critical section problem? What is the solution to the critical section problem?

    Ask AI

Q.6

Ask AI
  1. Q6.a

    What is a thread?

    Ask AI
  2. Q6.b

    How is thread different from a process?

    Ask AI
  3. Q6.c

    What resources are used when a thread is created?

    Ask AI

Q.7

Ask AI
  1. Q7

    How many page faults would occur for the following reference string for four page frames and three page frames using LRU and FIFO algorithms :

    1, 2, 3, 4, 5, 5, 3, 4, 1, 6, 7, 8, 7, 8, 9, 7, 8, 9, 5, 4, 5, 4, 2.

    Ask AI

Q.8

Ask AI
  1. Q8

    Define deadlock. List four necessary conditions for occurrence of deadlock. A system contains six units of resource, and nn processes that use the resource. What is the maximum value of nn for which the system will be deadlock free if the maximum requirement of each process is 3?

    Ask AI

Q.9

Ask AI
  1. Q9

    Explain shortest-seek-time-first (SSTF) disk scheduling. Why SSTF scheduling tends to favour middle cylinders over the innermost and outermost cylinders?

    Ask AI

2018061503

B.Tech Examination, 2018

3 hours70 marks

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

Ask AI
  1. Q1

    Choose the correct option (any seven) :

    a)

    In which type of operating system, the response time is very crucial?

    a)

    Unix operating system

    b)

    Real-time operating system

    c)

    Network operating system

    d)

    Batch operating system

    b)

    A process is

    a)

    a program in high-level language kept on disk

    b)

    a contents of main memory

    c)

    a program in execution

    d)

    a job in secondary memory

    c)

    The strategy of temporarily suspending a process that is logically runnable is called

    a)

    preemptive scheduling

    b)

    non-preemptive scheduling

    c)

    shortest job first

    d)

    first come, first serve

    d)

    To avoid the race condition, the number of processes that may be simultaneously inside their critical section is

    a)

    8

    b)

    1

    c)

    2

    d)

    4

    e)

    Fork is used to

    a)

    dispatch a task

    b)

    create a new job

    c)

    create a new process

    d)

    increase the priority of a task

    f)

    The principle of locality of reference justifies the use of

    a)

    secondary memory

    b)

    critical section

    c)

    virtual memory

    d)

    cache memory

    g)

    The memory allocation scheme subject to "external" fragmentation is

    a)

    segmentation

    b)

    swapping

    c)

    pure demand paging

    d)

    multiple continuous fixed partition

    h)

    The piece of code that only one thread should execute at a time is called

    a)

    mutual exclusion

    b)

    critical section

    c)

    synchronization

    d)

    None of the above

    i)

    Which memory allocation policy allocates the largest hole to the process?

    a)

    Best fit

    b)

    Worst fit

    c)

    First fit

    d)

    None of the above

    j)

    When there is enough memory to fit a process in memory, but the space is not continuous, then which of the following is required?

    a)

    Internal fragmentation

    b)

    Virtual fragmentation

    c)

    External fragmentation

    d)

    None of the above

    Ask AI
  2. Q2

    Answer the following:

    a)

    What is an operating system? Enumerate the basic functions of the operating system and explain each in brief.

    b)

    What is meant by process control block? Explain the different fields of PCB with the help of a diagram. Discuss the concept Context Switch by giving an example.

    Ask AI
  3. Q3

    Answer the following:

    a)

    Explain the following scheduling algorithms with the help of an example: (i) SJF (ii) Round robin

    b)

    Differentiate between preemptive scheduling and non-preemptive scheduling.

    Ask AI
  4. Q4

    Answer the following:

    a)

    What is meant by deadlock? Explain with example. Elaborate upon the conditions necessary for a deadlock situation to arise.

    b)

    Discuss the various mechanisms for deadlock recovery.

    Ask AI
  5. Q5

    Answer the following:

    a)

    Illustrate the concept of demand paging with the help of a diagram.

    b)

    What are the various memory allocation schemes?

    Ask AI
  6. Q6

    Answer the following:

    a)

    Consider the following reference string: 7, 0, 1, 2, 0, 3, 0, 4, 2, 3, 0, 3, 2, 1, 2, 0, 1, 7, 0, 1 Calculate the number of page faults that would occur for the following page replacement algorithms with frame size of 4: (i) FIFO (ii) LRU

    b)

    Explain the concept of semaphores with the help of an example.

    Ask AI
  7. Q7

    Answer the following:

    a)

    Discuss the performance criteria of CPU scheduling.

    b)

    Compare and contrast between linked and indexed disk allocation strategies.

    Ask AI
  8. Q8

    Answer the following:

    a)

    Illustrate with examples the following disk scheduling algorithms: (i) SSTF (ii) C-Look

    b)

    Explain the memory hierarchy of the operating system.

    Ask AI
  9. Q9

    Write short notes on the following :

    a)

    Segmentation

    b)

    Real-time systems

    c)

    Critical section

    Ask AI

2017061503

B.Tech Examination, 2017

3 hours70 marks

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

Ask AI
  1. Q1

    Choose the correct answer (any seven) :

    a)

    The operating system manages

    a)

    memory

    b)

    processes

    c)

    disks and I/O devices

    d)

    All of the above

    b)

    When a computer is turned on or restarted, a special type of absolute loader called _______ is executed.

    a)

    compile and go loader

    b)

    boot loader

    c)

    bootstrap loader

    d)

    relating loader

    c)

    In which type of operating systems, the response time is very crucial?

    a)

    Unix Operating System

    b)

    Real-time Operating System

    c)

    Batch Operating System

    d)

    Network Operating System

    d)

    Bringing a page into the memory only when it is needed is called

    a)

    deadlock

    b)

    page fault

    c)

    dormant paging

    d)

    demand paging

    e)

    A page fault occurs when

    a)

    deadlock happens

    b)

    segmentation starts

    c)

    page is found in the memory

    d)

    page is not found in the memory

    f)

    A program in execution is called

    a)

    paging

    b)

    process

    c)

    virtual memory

    d)

    demand page

    g)

    Copying a process from memory to disk to allow space for other processes is called

    a)

    swapping

    b)

    deadlock

    c)

    demand paging

    d)

    page fault

    h)

    What does Belady's anomaly relate to?

    a)

    Page Replacement Algorithm

    b)

    Memory Management Algorithm

    c)

    Deadlock Prevention Algorithm

    d)

    Disk Scheduling Algorithm

    i)

    The piece of code that only one thread should execute at a time is called

    a)

    mutual exclusion

    b)

    critical section

    c)

    synchronization

    d)

    None of the above

    j)

    When a process waits indefinitely for some resources which are being used by other processes, it is called

    a)

    Starvation

    b)

    Demand Paging

    c)

    Segmentation

    d)

    None of the above

    Ask AI
  2. Q2

    Answer the following:

    a)

    Explain the layered structure of an operating system with the help of a diagram. Discuss the various functions performed by the operating system.

    b)

    Explain the concept of a process. With the help of a state transition diagram, discuss the various process states.

    Ask AI
  3. Q3

    Consider the following set of processes with the length of CPU burst time in milliseconds : Process | Burst Time (ms) | Priority P1 | 10 | 3 P2 | 1 | 1 P3 | 2 | 3 P4 | 1 | 4 P5 | 5 | 2 The processes are assumed to have arrived in the order P1, P2, P3, P4, P5 and all at time 0.

    a)

    Draw Gantt chart, illustrating the execution of these processes using FCFS, SJF, and Round Robin (quantum = 1) scheduling.

    b)

    What is turnaround time of each process for each of the above scheduling algorithms in part (a)?

    c)

    What is the waiting time for each process for each of the scheduling algorithms in part (a)?

    d)

    Which of the schedules in part (a) results in the overall minimal average waiting time?

    Ask AI
  4. Q4

    Answer the following:

    a)

    Explain the critical section problem with the help of an example. Discuss the requirements that need to be satisfied for a solution of the critical section problem.

    b)

    Elaborate upon the conditions necessary for a deadlock situation to arise.

    Ask AI
  5. Q5

    Answer the following:

    a)

    With the help of a labelled diagram, explain how logical address is translated into physical address using paging mechanism.

    b)

    What are the various memory allocation schemes?

    Ask AI
  6. Q6

    Answer the following:

    a)

    Discuss with examples the following page replacement algorithms : (i) FIFO (ii) LRU

    b)

    Differentiate between external and internal fragmentations.

    Ask AI
  7. Q7

    Answer the following:

    a)

    Explain the usage of Resource Allocation Graph for Deadlock Avoidance.

    b)

    What is meant by directory? Briefly discuss the various structures of a directory.

    Ask AI
  8. Q8

    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?

    a)

    FCFS

    b)

    SSTF

    c)

    SCAN

    Ask AI
  9. Q9

    Answer the following:

    a)

    Process control block

    b)

    Schedulers

    c)

    Semaphores

    Ask AI

2016061503

B.Tech Examination, 2016

3 hours70 marks

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

Ask AI
  1. 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

    Ask AI
  2. 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.

    Ask AI
  3. Q3

    Answer the following:

    a)

    What is PCB? Discuss its major fields.

    b)

    Explain IPC Problem-Readers & Writers Problem?

    Ask AI
  4. 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.

    Ask AI
  5. 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.

    Ask AI
  6. 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.

    Ask AI
  7. 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.

    Ask AI
  8. Q8

    Answer the following:

    a)

    What is RAID? Explain in brief.

    b)

    What is I-node? Explain in detail.

    Ask AI
  9. 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.

    Ask AI

2015061503

B.Tech Examination, 2015

3 hours70 marks

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

Ask AI
  1. 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

    Ask AI
  2. 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.

    Ask AI
  3. 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.

    Ask AI
  4. 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.

    Ask AI
  5. 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.

    Ask AI
  6. 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?

    Ask AI
  7. 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

    Ask AI
  8. 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.

    Ask AI
  9. 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

    Ask AI

2014061503

B.Tech Examination, 2014

3 hours70 marks

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

Ask AI
  1. Q1

    Choose the correct answer (any seven) :

    a)

    Which of the following is a real-time system?

    a)

    On-line railway reservation system

    b)

    Process control system

    c)

    Aircraft control system

    d)

    Payroll processing system

    b)

    A process is a

    a)

    program in high-level language kept on disk

    b)

    content of main memory

    c)

    program in execution

    d)

    job in secondary memory

    c)

    The strategy of allowing processes that are logically runnable to be temporarily suspended is

    a)

    preemptive scheduling

    b)

    non-preemptive scheduling

    c)

    shortest job first

    d)

    first come first served

    d)

    _______ is a technique of improving the priority of process waiting in queue for CPU allocation.

    a)

    Starvation

    b)

    Ageing

    c)

    Revocation

    d)

    Relocation

    e)

    Dijkstra's banker algorithm is an operating system to solve the problem of

    a)

    deadlock avoidance

    b)

    deadlock recovery

    c)

    mutual exclusion

    d)

    context sustaining

    f)

    Interval between the time of submission and first response to the job is called

    a)

    waiting time

    b)

    turnaround time

    c)

    throughput

    d)

    response time

    g)

    Virtual memory can be implemented with

    a)

    segmentation

    b)

    paging

    c)

    Both of the above

    d)

    None of the above

    h)

    In which of the following page replacement policies Balady's anomaly occurs?

    a)

    FIFO

    b)

    LRU

    c)

    LFU

    d)

    NRU

    i)

    Which of the following approaches does not require knowledge of the system state?

    a)

    Deadlock detection

    b)

    Deadlock prevention

    c)

    Deadlock avoidance

    d)

    None of the above

    j)

    Memory management scheme having no internal fragmentation is called

    a)

    paging

    b)

    segmentation

    c)

    Both of the above

    d)

    None of the above

    Ask AI
  2. Q2

    Answer the following:

    a)

    Explain the important properties of the following operating systems : (i) Real-time systems (ii) Time-sharing systems

    b)

    What is an interrupt? Describe the basic interrupt mechanism.

    Ask AI
  3. Q3

    Answer the following:

    a)

    How is a process different from a program? Explain the process state transition with the help of a diagram.

    b)

    What is a thread? Explain the benefits of using threads.

    Ask AI
  4. Q4

    Answer the following:

    a)

    Justify the statement "Operating System works like a resource manager" with an example.

    b)

    Explain the concept of implementing interprocess communication through shared memory mechanism using suitable example.

    Ask AI
  5. Q5

    Answer the following:

    a)

    Explain the concept of critical section with suitable example.

    b)

    Explain the importance of semaphores.

    Ask AI
  6. Q6

    Answer the following:

    a)

    Explain the importance of resource allocation graph.

    b)

    Explain Banker's algorithm.

    Ask AI
  7. Q7

    Answer the following:

    a)

    Differentiate between a file and a directory. Justify for the need of file system.

    b)

    Explain the main features of general-graph directory structure.

    Ask AI
  8. Q8

    Answer the following:

    a)

    Differentiate between preemptive and non-preemptive scheduling.

    b)

    Consider the following memory references from a 460-word program : 10, 11, 104, 170, 73, 309, 185, 245, 246, 434, 450, 364 (i) Give the reference string assuming page size of 100 words. (ii) Find the number of page faults using the LRU algorithm for a memory of 3 frames.

    Ask AI
  9. Q9

    Answer the following:

    a)

    What do you understand by demand paging? Explain the steps in handling a page fault.

    b)

    How is segmentation different from paging?

    Ask AI

2013061503

B.Tech 5th Semester Exam., 2013

3 hours70 marks

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.

  1. Choose the correct option (any seven) :

Ask AI
  1. Q1.a

    An operating system is a type of —— software.

    a)

    application

    b)

    system

    c)

    utility

    d)

    All of the above

    Ask AI
  2. Q1.b

    A process is

    a)

    a program in high-level language kept on disk

    b)

    contents of main memory

    c)

    a program in execution

    d)

    a job in secondary memory

    Ask AI
  3. Q1.c

    An operating system having rigid time requirements is known as

    a)

    batch processing system

    b)

    multiprogramming system

    c)

    real-time system

    d)

    multitasking system

    Ask AI
  4. Q1.d

    —— is a technique of improving the priority of process waiting in queue for CPU allocation.

    a)

    Starvation

    b)

    Ageing

    c)

    Revocation

    d)

    Relocation

    Ask AI
  5. Q1.e

    Kernel mode of operation is also called

    a)

    supervisor mode

    b)

    privileged mode

    c)

    Both

    d)

    None of the above

    Ask AI
  6. Q1.f

    Interval between the time of submission and completion of the job is called

    a)

    waiting time

    b)

    turnaround time

    c)

    throughput

    d)

    response time

    Ask AI
  7. Q1.g

    A software generated interrupt is called

    a)

    trap

    b)

    software interrupt

    c)

    soft interrupt

    d)

    hard interrupt

    Ask AI
  8. Q1.h

    In which of the following page replacement policies Belady's anomaly occurs?

    a)

    FIFO

    b)

    LRU

    c)

    LFU

    d)

    NRU

    Ask AI
  9. Q1.i

    LRU page replacement algorithm stands for

    a)

    Last Recently Used algorithm

    b)

    Least Recently Used algorithm

    c)

    Latest Recently Used algorithm

    d)

    Lowest Recently Used algorithm

    Ask AI
  10. Q1.j

    Memory management scheme having no external fragmentation is called

    a)

    paging

    b)

    segmentation

    c)

    Both

    d)

    None of the above

    Ask AI

Q.2

Ask AI
  1. Q2.a

    Explain the duties of operating system.

    Ask AI
  2. Q2.b

    How is a process different from a program? Explain the importance and need for process control block.

    Ask AI

Q.3

Ask AI
  1. Q3.a

    Explain the use of resource allocation graph.

    Ask AI
  2. Q3.b

    What is thread? Explain the benefits of using thread.

    Ask AI

Q.4

Ask AI
  1. Q4.a

    What do you understand by deadlock? Discuss the methods to avoid deadlock.

    Ask AI
  2. Q4.b

    What is thrashing? How can it be controlled?

    Ask AI

Q.5

Ask AI
  1. Q5.a

    Explain the various address binding schemes.

    Ask AI
  2. Q5.b

    Explain the segmentation technique with the help of a diagram.

    Ask AI

Q.6

Ask AI
  1. Q6.a

    Explain the following terms :
    (i) Turnaround time
    (ii) Waiting time
    (iii) Response time
    (iv) Throughput

    Ask AI
  2. Q6.b

    Consider the following page replacement string :
    0, 7, 1, 2, 0, 3, 7, 4, 2, 3, 0, 3, 2, 1, 0, 7, 1, 7, 0, 1
    Find the number of page faults using the following algorithms for a memory of 4 frames :
    (i) FIFO algorithm
    (ii) Optimal algorithm

    Ask AI

Q.7

Ask AI
  1. Q7.a

    Explain the use of TLB in paging hardware and its benefits.

    Ask AI
  2. Q7.b

    Explain the role of different types of scheduler.

    Ask AI

Q.8

Ask AI
  1. Q8.a

    What is Belady's anomaly? Explain the steps for page replacement.

    Ask AI
  2. Q8.b

    Explain the options for allocation of frames among various processes.

    Ask AI

Q.9

Ask AI
  1. Q9.a

    Explain the working of LOOK and C-LOOK scheduling algorithms.

    Ask AI
  2. Q9.b

    Explain Dining-Philosophers problem.

    Ask AI

2013105314

Examination 2013

3 hours70 marks

Instructions

  • The marks are indicated in the right-hand margin.
  • There are TEN questions in this paper.
  • Attempt any FIVE questions.

Q.1 Solve all questions :

Ask AI
  1. Q1.1

    Define operating system. What are the duties performed by an operating system?

    Ask AI
  2. Q1.2

    What are the main advantages of time sharing systems?

    Ask AI
  3. Q1.3

    What are system calls? Explain their importance.

    Ask AI

Q.2 Solve both questions :

Ask AI
  1. Q2.1

    Differentiate between a file and a Directory. Justify for the need of file system.

    Ask AI
  2. Q2.2

    Explain the main features of general graph directory structure.

    Ask AI

Q.3 Solve both questions :

Ask AI
  1. Q3.1

    What do you understand by deadlock? Discuss the methods to avoid deadlock in an operating system.

    Ask AI
  2. Q3.2

    Explain the working of resource allocation graph.

    Ask AI

Q.4 Solve both questions :

Ask AI
  1. Q4.1

    What is the difference between physical and logical address space?

    Ask AI
  2. Q4.2

    What are semaphores? How can they be used to handle the process synchronization problem?

    Ask AI

Q.5 Solve both questions :

Ask AI
  1. Q5.1

    What are the benefits of segmentation?

    Ask AI
  2. Q5.2

    Explain the segmentation technique with the help of a diagram.

    Ask AI

Q.6 Solve both questions :

Ask AI
  1. Q6.1

    Explain the following terms:
    (i) Turnaround time
    (ii) Waiting time
    (iii) Response time
    (iv) Throughput

    Ask AI
  2. Q6.2

    Consider the following page replacement string: 7, 0, 1, 2, 0, 3, 0, 4, 2, 3, 0, 3, 2, 1, 2, 0, 1, 7, 0, 1
    Find the number of page faults using the following algorithms for a memory of three frames:
    (i) FIFO algorithm
    (ii) LRU algorithm

    Ask AI

Q.7 Solve both questions :

Ask AI
  1. Q7.1

    What do you understand by fragmentation? Explain the difference between external and internal fragmentations.

    Ask AI
  2. Q7.2

    What is a thread? Explain the benefits of using threads.

    Ask AI

Q.8 Solve both questions :

Ask AI
  1. Q8.1

    What do you understand by address binding? Explain the various address binding schemes.

    Ask AI
  2. Q8.2

    Explain the importance of virtual memory.

    Ask AI

Q.9 Solve both questions :

Ask AI
  1. Q9.1

    What do you understand by disk scheduling? Describe seek time and rotational latency.

    Ask AI
  2. Q9.2

    Describe SCAN scheduling. How is C-SCAN different from SCAN?

    Ask AI

Q.10 Write short notes on (any three):

Ask AI
  1. Q10.1

    Micro kernel

    Ask AI
  2. Q10.2

    Bankers Algorithm

    Ask AI
  3. Q10.3

    Process control block

    Ask AI
  4. Q10.4

    Paging

    Ask AI
  5. Q10.5

    Indexed allocation

    Ask AI

2013V4105314

Examination 2013

3 hours70 marks

Instructions

  • The marks are indicated in the right-hand margin.
  • There are TEN questions in this paper.
  • Attempt any FIVE questions.

Q.1 Solve all questions :

Ask AI
  1. Q1.1

    Define operating system. What are the duties performed by an operating system?

    Ask AI
  2. Q1.2

    What are the main advantages of time sharing systems?

    Ask AI
  3. Q1.3

    What are system calls? Explain their importance.

    Ask AI

Q.2 Solve both questions :

Ask AI
  1. Q2.1

    Differentiate between a file and a Directory. Justify for the need of file system.

    Ask AI
  2. Q2.2

    Explain the main features of general graph directory structure.

    Ask AI

Q.3 Solve both questions :

Ask AI
  1. Q3.1

    What do you understand by deadlock? Discuss the methods to avoid deadlock in an operating system.

    Ask AI
  2. Q3.2

    Explain the working of resource allocation graph.

    Ask AI

Q.4 Solve both questions :

Ask AI
  1. Q4.1

    What is the difference between physical and logical address space?

    Ask AI
  2. Q4.2

    What are semaphores? How can they be used to handle the process synchronization problem?

    Ask AI

Q.5 Solve both questions :

Ask AI
  1. Q5.1

    What are the benefits of segmentation?

    Ask AI
  2. Q5.2

    Explain the segmentation technique with the help of a diagram.

    Ask AI

Q.6 Solve both questions :

Ask AI
  1. Q6.1

    Explain the following terms:
    (i) Turnaround time
    (ii) Waiting time
    (iii) Response time
    (iv) Throughput

    Ask AI
  2. Q6.2

    Consider the following page replacement string: 7, 0, 1, 2, 0, 3, 0, 4, 2, 3, 0, 3, 2, 1, 2, 0, 1, 7, 0, 1
    Find the number of page faults using the following algorithms for a memory of three frames:
    (i) FIFO algorithm
    (ii) LRU algorithm

    Ask AI

Q.7 Solve both questions :

Ask AI
  1. Q7.1

    What do you understand by fragmentation? Explain the difference between external and internal fragmentations.

    Ask AI
  2. Q7.2

    What is a thread? Explain the benefits of using threads.

    Ask AI

Q.8 Solve both questions :

Ask AI
  1. Q8.1

    What do you understand by address binding? Explain the various address binding schemes.

    Ask AI
  2. Q8.2

    Explain the importance of virtual memory.

    Ask AI

Q.9 Solve both questions :

Ask AI
  1. Q9.1

    What do you understand by disk scheduling? Describe seek time and rotational latency.

    Ask AI
  2. Q9.2

    Describe SCAN scheduling. How is C-SCAN different from SCAN?

    Ask AI

Q.10 Write short notes on (any three):

Ask AI
  1. Q10.1

    Micro kernel

    Ask AI
  2. Q10.2

    Bankers Algorithm

    Ask AI
  3. Q10.3

    Process control block

    Ask AI
  4. Q10.4

    Paging

    Ask AI
  5. Q10.5

    Indexed allocation

    Ask AI

Support BEUConnect

Contributions cover the domain and hosting.

UPI QR code for pritkr@cnrb
pritkr@cnrb

Add to home screen

  1. Tap Share in Safari.
  2. Choose Add to Home Screen.