Yahoo India Web Search

Search results

  1. May 26, 2024 · Find 300+ top operating system lab viva questions and answers for CSE students. Learn about different types of operating systems, their components, services, system calls, and more.

    • Basics OS Interview Questions
    • Intermediate OS Interview Questions
    • Advanced OS Interview Questions
    • Conclusion

    1. What is a process and process table?

    A process is an instance of a program in execution. For example, a Web Browser is a process, and a shell (or command prompt) is a process. The operating system is responsible for managing all the processes that are running on a computer and allocates each process a certain amount of time to use the processor. In addition, the operating systemalso allocates various other resources that processes will need, such as computer memory or disks. To keep track of the state of all the processes, the o...

    2. What are the different states of the process?

    Processes can be in one of three states: running, ready, or waiting. The running state means that the process has all the resources it needs for execution and it has been given permission by the operating system to use the processor. Only one process can be in the running state at any given time. The remaining processes are either in a waiting state (i.e., waiting for some external event to occur such as user input or disk access) or a ready state (i.e., waiting for permission to use the proc...

    3. What is a Thread?

    A threadis a single sequence stream within a process. Because threads have some of the properties of processes, they are sometimes called lightweight processes. Threads are a popular way to improve the application through parallelism. For example, in a browser, multiple tabs can be different threads. MS Word uses multiple threads, one thread to format the text, another thread to process inputs, etc.

    62. Write down the advantages of multithreading?

    Some of the most important benefits of MT are: 1. Improved throughput. Many concurrent compute operations and I/O requests within a single process. 2. Simultaneous and fully symmetric use of multiple processors for computation and I/O. 3. Superior application responsiveness. If a request can be launched on its own thread, applications do not freeze or show the “hourglass”. An entire application will not block or otherwise wait, pending the completion of another request. 4. Improved server res...

    64. What are the drawbacks of semaphores?

    1. Priority Inversion is a big limitation of semaphores. 2. Their use is not enforced but is by convention only. 3. The programmer has to keep track of all calls to wait and signal the semaphore. 4. With improper use, a process may block indefinitely. Such a situation is called Deadlock.

    65. What is Peterson’s approach?

    It is a concurrent programming algorithm. It is used to synchronize two processes that maintain the mutual exclusion for the shared resource. It uses two variables, a bool array flag of size 2 and an int variable turn to accomplish it.

    95. What is Belady’s Anomaly?

    Bélády’s anomaly is an anomaly with some page replacement policies increasing the number of page frames resulting in an increase in the number of page faults. It occurs when the First In First Out page replacement is used.

    96. What happens if a non-recursive mutex is locked more than once?

    Deadlock. If a thread that had already locked a mutex, tries to lock the mutex again, it will enter into the waiting list of that mutex, which results in a deadlock. It is because no other thread can unlock the mutex. An operating system implementer can exercise care in identifying the owner of the mutex and return it if it is already locked by the same thread to prevent deadlocks.

    97. What are the advantages of a multiprocessor system?

    There are some main advantages of a multiprocessor system: 1. Enhanced performance. 2. Multiple applications. 3. Multi-tasking inside an application. 4. High throughput and responsiveness. 5. Hardware sharing among CPUs.

    In conclusion, the field of operating systems is a crucial aspect of computer science, and a thorough understanding of its concepts is essential for anyone looking to excel in this area. By reviewing the Top 2024 100+ operating systems interview questions we have compiled, you can gain a deeper understanding of the key principles and concepts of OS...

    • What is an operating system? The operating system is a software program that facilitates computer hardware to communicate and operate with the computer software.
    • What is the main purpose of an operating system? There are two main purposes of an operating system: It is designed to make sure that a computer system performs well by managing its computational activities.
    • What are the different operating systems? Batched operating systems. Distributed operating systems. Timesharing operating systems. Multi-programmed operating systems.
    • What is a socket? A socket is used to make connection between two applications. Endpoints of the connection are called socket.
    • Explain the main purpose of an operating system? Operating systems exist for two main purposes. One is that it is designed to make sure a computer system performs well by managing its computational activities.
    • What is demand paging? Demand paging is referred when not all of a process’s pages are in the RAM, then the OS brings the missing(and required) pages from the disk into the RAM.
    • What are the advantages of a multiprocessor system? With an increased number of processors, there is a considerable increase in throughput. It can also save more money because they can share resources.
    • What is kernel? A kernel is the core of every operating system. It connects applications to the actual processing of data. It also manages all communications between software and hardware components to ensure usability and reliability.
  2. Nov 25, 2014 · The computer must analyze the data and possibly adjust controls to. modify the sensor input. They are of two types: 1. Hard real time OS. 2. Soft real time OS. Hard-real-time OS has well-defined fixed time constraints. But soft real time operating systems have less stringent timing constraints.

  3. Jan 3, 2024 · Operating System (OS) is basically a software program that manages and handles all resources of a computer such as hardware and software. The first OS was introduced in the early 1950s known as GMOs. An OS is responsible for managing, handling, and coordinating overall activities and sharing of computer resources.

  4. Prepare for your operating system interview with 50+ questions and answers on basic, intermediate and advanced topics. Learn about kernel, processes, memory, storage, system calls, deadlock, synchronization and more.